Skip to content

Commit

Permalink
Update source code paths from Windows tracefiles to match Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
pcolby committed Oct 14, 2024
1 parent 40fc34b commit 516ba8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 516ba8c

Please sign in to comment.