Skip to content

Commit

Permalink
fix macos coverage failed
Browse files Browse the repository at this point in the history
  • Loading branch information
cyjseagull committed Sep 14, 2024
1 parent ca40183 commit a7d6b88
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/cpp_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,14 @@ jobs:
run: |
brew install lcov
bash cpp/tools/install_depends.sh -o macos
mkdir -p cpp/build && cd cpp/build && cmake -DTESTS=ON -DCOVERAGE=ON -DBUILD_SDK=ON -DCMAKE_TOOLCHAIN_FILE=${{ env.VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake ../
mkdir -p cpp/build && cd cpp/build && cmake -DTESTS=ON -DCOVERAGE=OFF -DBUILD_SDK=ON -DCMAKE_TOOLCHAIN_FILE=${{ env.VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake ../
make -j3
- name: Test
if: runner.os != 'Windows'
if: runner.os == 'macOS'
run: |
cd cpp/build && CTEST_OUTPUT_ON_FAILURE=TRUE make test
- name: Test and upload coverage
if: runner.os == 'Linux'
run: |
cd cpp/build && CTEST_OUTPUT_ON_FAILURE=TRUE make test
make coverage
Expand Down

0 comments on commit a7d6b88

Please sign in to comment.