diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index 5b632391..b6b0bc83 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -92,6 +92,15 @@ jobs: repository: cppalliance/ci-automation path: ci-automation + - name: Patch CI script for extra source directories + run: | + # The CI script only symlinks 'include/' and 'src/' at boost-root level, + # but this repo also has src_zlib/ and src_brotli/. After fix_paths.py + # strips 'libs/http/', gcovr can't find these files without symlinks. + sed -i '/ln -sfn "\$BOOST_CI_SRC_FOLDER\/src" /a\ + for _d in "$BOOST_CI_SRC_FOLDER"/src_*; do [ -d "$_d" ] && ln -sfn "$_d" "$(pwd)/$(basename "$_d")" 2>/dev/null || true; done' \ + ci-automation/scripts/lcov-jenkins-gcc-13.sh + - name: Build and run tests & collect coverage data run: | set -xe