Skip to content

Commit

Permalink
Updated the coverage build to use gcc-14
Browse files Browse the repository at this point in the history
Workarounds a problem with the build-gcc13 container, which uses a
non-LTS Ubuntu release and can't be installed packages
  • Loading branch information
anarthal authored Nov 29, 2024
1 parent f6c1192 commit ef9224c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
coverage:
runs-on: ubuntu-latest
container:
image: ghcr.io/anarthal-containers/build-gcc13:61b5b771ffefa8c04c43ddc9e023152461a8295f
image: ghcr.io/anarthal-containers/build-gcc14:61b5b771ffefa8c04c43ddc9e023152461a8295f
volumes:
- /var/run/mysqld:/var/run/mysqld
services:
Expand Down Expand Up @@ -52,8 +52,18 @@ jobs:
shell: bash
run: |
cd ~/boost-root/bin.v2
lcov --rc lcov_branch_coverage=0 --gcov-tool gcov-13 --directory . --capture --output-file all.info
lcov --rc lcov_branch_coverage=0 --output-file coverage.info --extract all.info '*/boost/mysql*'
lcov \
--rc branch_coverage=0 \
--rc geninfo_unexecuted_blocks=1 \
--ignore-errors mismatch \
--gcov-tool gcov-14 \
--directory . \
--capture \
--output-file all.info
lcov \
--rc branch_coverage=0 \
--output-file coverage.info \
--extract all.info '*/boost/mysql*'
sed "s|^SF:$HOME/boost-root/|SF:include/|g" coverage.info > $GITHUB_WORKSPACE/coverage.info
- name: Upload coverage reports
Expand Down
1 change: 1 addition & 0 deletions test/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ alias boost_context_lib
: usage-requirements
# gcc-14+ seem to enable CET by default, which causes warnings with Boost.Context.
# Disable CET until https://github.com/boostorg/context/issues/263 gets fixed
<toolset>gcc-13:<cxxflags>-fcf-protection=none
<toolset>gcc-14:<cxxflags>-fcf-protection=none
;

Expand Down

0 comments on commit ef9224c

Please sign in to comment.