diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 9c4adf98b..32a304352 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -651,7 +651,9 @@ jobs: run: | shopt -s globstar # Update source code paths from macOS tracefiles to match Linux. - sed -i -Ee 's|^SF:/Users|SF:/home|' artifacts/**/coverage.info + sed -i -Ee 's|^SF:/Users|SF:/home|' artifacts/*.macos-*/**/coverage.info + # Update source code paths from Windows tracefiles to match Linux. + sed -i -Ee 's|\\|/|g' -e 's|^SF:D:/a|SF:/home/runner/work|' artifacts/*.win.*/**/coverage.info # Combine all tracefiles into one. lcov $(find artifacts -name '*.info' -type f -printf '-a %p\n') -o coverage.info # Generate the HTML report.