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 768f0a6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/cpp_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ jobs:
if: runner.os != 'Windows'
run: |
cd cpp/build && CTEST_OUTPUT_ON_FAILURE=TRUE ctest
make coverage
build_sdk:
name: build sdk
Expand Down Expand Up @@ -131,13 +130,16 @@ 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
- uses: actions/upload-artifact@v4
if: runner.os == 'macos'
with:
Expand Down

0 comments on commit 768f0a6

Please sign in to comment.