Merge pull request #4442 from hummeltech/macOSLCOV
Address `lcov`/`geninfo` errors on macOS CI builds
This commit is contained in:
commit
a8d1797bcf
1 changed files with 6 additions and 3 deletions
9
.github/actions/run_tests/action.yml
vendored
9
.github/actions/run_tests/action.yml
vendored
|
@ -73,9 +73,12 @@ runs:
|
||||||
if: runner.os != 'Windows'
|
if: runner.os != 'Windows'
|
||||||
shell: "bash"
|
shell: "bash"
|
||||||
run: |
|
run: |
|
||||||
lcov --directory . --capture --output-file coverage.info
|
if [ "$RUNNER_OS" == "macOS" ]; then
|
||||||
lcov --remove coverage.info '/usr/*' '*/vcpkg_installed/*' '/.cache/*' '*/test/*' --output-file coverage.info
|
LCOV_EXTRA_OPTIONS="--ignore-errors gcov --ignore-errors inconsistent --ignore-errors unused"
|
||||||
lcov --list coverage.info
|
fi
|
||||||
|
lcov ${LCOV_EXTRA_OPTIONS:-} --directory . --capture --output-file coverage.info
|
||||||
|
lcov ${LCOV_EXTRA_OPTIONS:-} --remove coverage.info '/usr/*' '*/vcpkg_installed/*' '/.cache/*' '*/test/*' --output-file coverage.info
|
||||||
|
lcov ${LCOV_EXTRA_OPTIONS:-} --list coverage.info
|
||||||
|
|
||||||
- name: Upload coverage to Codecov (linux & macos)
|
- name: Upload coverage to Codecov (linux & macos)
|
||||||
if: runner.os != 'Windows'
|
if: runner.os != 'Windows'
|
||||||
|
|
Loading…
Reference in a new issue