Skip to content

Commit 3ae8ba2

Browse files
committed
Fix code coverage deployment by adding src_zlib/src_brotli symlinks
1 parent b7cff74 commit 3ae8ba2

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/code-coverage.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,15 @@ jobs:
9292
repository: cppalliance/ci-automation
9393
path: ci-automation
9494

95+
- name: Patch CI script for extra source directories
96+
run: |
97+
# The CI script only symlinks 'include/' and 'src/' at boost-root level,
98+
# but this repo also has src_zlib/ and src_brotli/. After fix_paths.py
99+
# strips 'libs/http/', gcovr can't find these files without symlinks.
100+
sed -i '/ln -sfn "\$BOOST_CI_SRC_FOLDER\/src" /a\
101+
for _d in "$BOOST_CI_SRC_FOLDER"/src_*; do [ -d "$_d" ] && ln -sfn "$_d" "$(pwd)/$(basename "$_d")" 2>/dev/null || true; done' \
102+
ci-automation/scripts/lcov-jenkins-gcc-13.sh
103+
95104
- name: Build and run tests & collect coverage data
96105
run: |
97106
set -xe

0 commit comments

Comments
 (0)