File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -652,8 +652,8 @@ jobs:
652
652
shopt -s globstar
653
653
# Update source code paths from macOS tracefiles to match Linux.
654
654
sed -i -Ee 's|^SF:/Users|SF:/home|' artifacts/*.macos-*/**/coverage.info
655
- # Update source code paths from Windows tracefiles to match Linux.
656
- sed -i -Ee 's|\\|/|g' -e 's|^SF:D:/a|SF:/home/runner/work|' artifacts/*.win.*/**/coverage.info
655
+ # Update source code paths from Windows tracefiles to match Linux, and remove all \r chars from line endings .
656
+ sed -i -Ee 's|\r$||' -e 's|\ \|/|g' -e 's|^SF:D:/a|SF:/home/runner/work|' artifacts/*.win.*/**/coverage.info
657
657
# Combine all tracefiles into one.
658
658
lcov $(find artifacts -name '*.info' -type f -printf '-a %p\n') -o coverage.info
659
659
# Generate the HTML report.
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ if (ENABLE_COVERAGE AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
64
64
COMMAND ${CODECOV_LCOV} --ignore -errors unused --remove coverage.info *:\\mingw32\\* --output -file coverage.info
65
65
COMMAND ${CODECOV_LCOV} --ignore -errors unused --remove coverage.info *:\\mingw64\\* --output -file coverage.info
66
66
COMMAND ${CODECOV_LCOV} --ignore -errors unused --remove coverage.info *\\.qt\\* --output -file coverage.info
67
+ COMMAND ${CODECOV_LCOV} --ignore -errors unused --remove coverage.info *\\.rcc\\* --output -file coverage.info
67
68
COMMAND ${CODECOV_LCOV} --ignore -errors unused --remove coverage.info *\\moc_*.cpp --output -file coverage.info
68
69
COMMAND ${CODECOV_LCOV} --ignore -errors unused --remove coverage.info *\\Qt\\* --output -file coverage.info
69
70
COMMAND ${CODECOV_LCOV} --ignore -errors unused --remove coverage.info *\\test \\* --output -file coverage.info
You can’t perform that action at this time.
0 commit comments