Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: compile with protobuf 22+ using macos
Browse files Browse the repository at this point in the history
wasphin committed Mar 4, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 3751755 commit bd059d8
Showing 1 changed file with 42 additions and 1 deletion.
43 changes: 42 additions & 1 deletion .github/workflows/ci-macos.yml
Original file line number Diff line number Diff line change
@@ -44,7 +44,7 @@ jobs:
- name: install dependences
run: |
brew install ./homebrew-formula/protobuf.rb
brew install openssl gnu-getopt coreutils gflags leveldb
brew install openssl gflags leveldb
- name: cmake
run: |
@@ -56,3 +56,44 @@ jobs:
run: |
cd build
make -j ${{env.proc_num}}
compile-with-make-protobuf22+:
runs-on: macos-latest # https://github.com/actions/runner-images

steps:
- uses: actions/checkout@v2

- name: install dependences
run: |
brew install protobuf openssl gnu-getopt coreutils gflags leveldb
- name: config_brpc
run: |
GETOPT_PATH=$(brew --prefix gnu-getopt)/bin
export PATH=$GETOPT_PATH:$PATH
./config_brpc.sh --header="$(brew --prefix)/include" --libs="$(brew --prefix)/lib"
- name: compile
run: |
make -j ${{env.proc_num}}
compile-with-cmake-protobuf22+:
runs-on: macos-latest

steps:
- uses: actions/checkout@v2

- name: install dependences
run: |
brew install protobuf openssl gflags leveldb
- name: cmake
run: |
mkdir build
cd build
cmake ..
- name: compile
run: |
cd build
make -j ${{env.proc_num}}

0 comments on commit bd059d8

Please sign in to comment.