Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 15 additions & 13 deletions .github/workflows/ci-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,15 @@ env:
proc_num: $(sysctl -n hw.logicalcpu)

jobs:
compile:
compile-with-make-cmake-protobuf21:
runs-on: macos-latest # https://github.com/actions/runner-images

steps:
- uses: actions/checkout@v2

- name: install dependences
run: |
brew install ./homebrew-formula/protobuf.rb
brew install openssl gnu-getopt coreutils gflags leveldb
brew install openssl gnu-getopt coreutils gflags leveldb protobuf@21

- name: compile with make
run: |
Expand All @@ -34,23 +33,19 @@ jobs:

- name: compile with cmake
run: |
mkdir build && cd build && cmake ..
echo "CMAKE_PREFIX_PATH=$(brew --prefix protobuf@21)"
mkdir build && cd build && cmake -DCMAKE_PREFIX_PATH=$(brew --prefix protobuf@21) ..
make -j ${{env.proc_num}} && make clean

compile-with-make-protobuf23:
compile-with-make-cmake-protobuf29:
runs-on: macos-latest # https://github.com/actions/runner-images

steps:
- uses: actions/checkout@v2

- name: install dependences
run: |
brew install openssl gnu-getopt coreutils gflags leveldb
# abseil 20230125.3
curl -o abseil.rb https://raw.githubusercontent.com/Homebrew/homebrew-core/b85b8dbf23ad509f163677a88ac72268f31e9c4a/Formula/abseil.rb
# protobuf 23.3
curl -o protobuf.rb https://raw.githubusercontent.com/Homebrew/homebrew-core/b85b8dbf23ad509f163677a88ac72268f31e9c4a/Formula/protobuf.rb
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install --formula --ignore-dependencies ./abseil.rb ./protobuf.rb
brew install openssl gnu-getopt coreutils gflags leveldb protobuf@29

- name: compile with make
run: |
Expand All @@ -59,7 +54,14 @@ jobs:
./config_brpc.sh --header="$(brew --prefix)/include" --libs="$(brew --prefix)/lib"
make -j ${{env.proc_num}} && make clean

- name: compile with make
- name: compile with cmake
run: |
mkdir build && cd build && cmake ..
mkdir build && cd build && cmake -DCMAKE_PREFIX_PATH=$(brew --prefix protobuf@29) ..
make -j ${{env.proc_num}} && make clean

compile-with-bazel:
runs-on: macos-latest # https://github.com/actions/runner-images

steps:
- uses: actions/checkout@v2
- run: bazel build --verbose_failures -- //:brpc -//example/...
Loading