Skip to content

Commit

Permalink
[CI/CD] exclude exceptions from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
isuckatcs committed Jun 30, 2024
1 parent 18a9a92 commit da71b98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

env:
BUILD_TYPE: Debug
COVERAGE_FLAGS: "\"-g -O0 --coverage -fprofile-arcs -ftest-coverage -fno-exceptions\""

jobs:
build:
Expand All @@ -18,7 +19,7 @@ jobs:
- uses: actions/checkout@v4

- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_CXX_FLAGS="-g -O0 --coverage -fprofile-arcs -ftest-coverage" -DCMAKE_C_FLAGS="-g -O0 --coverage -fprofile-arcs -ftest-coverage"
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_CXX_FLAGS=${{env.COVERAGE_FLAGS}} -DCMAKE_C_FLAGS=${{env.COVERAGE_FLAGS}}

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
Expand Down

0 comments on commit da71b98

Please sign in to comment.