From db4d4ba096810acd81c856db3b828b6f0fe1c6cc Mon Sep 17 00:00:00 2001 From: Pin Loon Lee Date: Sat, 30 Aug 2025 13:50:21 +0800 Subject: [PATCH] .github: workflows: ci.yml: temporary fix for lcov bug --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 58856c0..9664ec6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,6 +27,9 @@ jobs: needs: build # The type of runner that the job will run on runs-on: ubuntu-latest + # work around lcov bug #316; remove once lcov is fixed (see https://github.com/linux-test-project/lcov/issues/316) + env: + LCOBUG: "--ignore-errors mismatch" # Steps represent a sequence of tasks that will be executed as part of the job steps: @@ -41,7 +44,7 @@ jobs: - name: Test run: cd ./build && make test - name: Check code coverage - run: /usr/bin/lcov --directory ./build --capture --output-file ./build/coverage.info && /usr/bin/lcov --remove ./build/coverage.info "/usr/*" "*/googletest/googletest/*" --output-file ./build/coverage.info + run: /usr/bin/lcov --directory ./build --capture --output-file ./build/coverage.info $LCOBUG && /usr/bin/lcov --remove ./build/coverage.info "/usr/*" "*/googletest/googletest/*" --output-file ./build/coverage.info - name: List coverage summary run: /usr/bin/lcov --list ./build/coverage.info - name: Upload report to codecov