From f52fd8b3ace279f541b2e8a71b74264b2e980125 Mon Sep 17 00:00:00 2001 From: ActoryOu Date: Wed, 20 Nov 2024 14:02:10 +0800 Subject: [PATCH] Fix HTML report generation in ci.yml and release.yml. (#183) --- .github/workflows/ci.yml | 4 ++-- .github/workflows/release.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f4585b28..7276fc4a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,7 @@ jobs: -DCMAKE_BUILD_TYPE=Debug \ -DUNITTEST=ON \ -DBUILD_CLONE_SUBMODULES=ON \ - -DCMAKE_C_FLAGS='--coverage -Wall -Wextra -Werror -DNDEBUG' + -DCMAKE_C_FLAGS='-Wall -Wextra -Werror -DNDEBUG' make -C build/ all @@ -48,7 +48,7 @@ jobs: echo -e "::group::${{ env.bashInfo }} Generate Coverage Report ${{ env.bashEnd }}" # Generate coverage report, excluding extra directories - lcov --rc lcov_branch_coverage=1 -r build/coverage.info -o build/coverage.info '*test*' '*CMakeCCompilerId*' '*mocks*' + lcov --rc lcov_branch_coverage=1 -r build/coverage.info -o build/coverage.info echo "::endgroup::" lcov --rc lcov_branch_coverage=1 --list build/coverage.info diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 28b5e2ed..0b6ea7bb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -101,7 +101,7 @@ jobs: -G "Unix Makefiles" \ -DCMAKE_BUILD_TYPE=Debug \ -DBUILD_CLONE_SUBMODULES=ON \ - -DCMAKE_C_FLAGS='--coverage -Wall -Wextra -DNDEBUG' + -DCMAKE_C_FLAGS='-Wall -Wextra -DNDEBUG' make -C build/ all - name: Test env: