fix binpb changes #331
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: MacOS | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
- dev/** | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
branches: | |
- main | |
- develop | |
paths-ignore: | |
- '**.md' | |
env: | |
CTEST_OUTPUT_ON_FAILURE: 1 | |
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm_modules | |
jobs: | |
build: | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
protoc: ["find"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: "**/cpm_modules" | |
key: ${{ github.workflow }}-${{ matrix.protoc }}-cpm-modules-${{ hashFiles('**/third-party.cmake') }} | |
- name: Install ninja and protobuf | |
shell: bash | |
run: brew install ninja protobuf grpc | |
- name: ccache | |
uses: hendrikmuhs/[email protected] | |
with: | |
key: ${{ github.workflow }}-${{ matrix.protoc }} | |
- name: configure | |
shell: bash | |
run: | | |
cmake -S . -B build -G Ninja -DHPP_PROTO_PROTOC=${{ matrix.protoc }} -DCMAKE_BUILD_TYPE=Debug \ | |
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache | |
- name: build | |
run: cmake --build build | |
- name: test | |
shell: bash | |
run: | | |
cd build | |
ctest --build-config Debug --output-on-failure |