diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7ac6bd3..00b827d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -58,8 +58,8 @@ jobs: - { compiler: clang-19, cxxstd: '14,17,20,23,2c', boostBranch: boost-1.86.0, os: ubuntu-24.04 } - { compiler: clang-20, cxxstd: '14,17,20,23,2c', boostBranch: boost-1.86.0, os: ubuntu-24.04 } - { compiler: clang-21, cxxstd: '14,17,20,23,2c', boostBranch: boost-1.86.0, os: ubuntu-26.04 } - - { compiler: clang-22, cxxstd: '14,17,20,23,2c', boostBranch: boost-1.86.0, os: ubuntu-26.04 } - - { compiler: clang-22, cxxstd: '14,17,20,23,2c', boostBranch: master, os: ubuntu-26.04 } + - { compiler: clang-22, cxxstd: '14,17,20,23,2c', boostBranch: boost-1.86.0, os: ubuntu-26.04, cxxflags: '-Wno-c2y-extensions' } + - { compiler: clang-22, cxxstd: '14,17,20,23,2c', boostBranch: master, os: ubuntu-26.04, cxxflags: '-Wno-c2y-extensions' } # Windows - { toolset: gcc, os: windows-2022, cxxstd: 17, generator: 'MinGW Makefiles' } @@ -73,6 +73,8 @@ jobs: timeout-minutes: 120 runs-on: ${{matrix.os}} container: ${{matrix.container}} + env: + B2_CXXFLAGS: ${{matrix.cxxflags}} steps: - name: Prepare container environment @@ -139,6 +141,9 @@ jobs: if [[ "${{matrix.coverage}}" == "yes" ]]; then B2_FLAGS+=" cxxflags=--coverage linkflags=--coverage" fi + if [[ -n $B2_CXXFLAGS ]]; then + B2_FLAGS+=" cxxflags='$B2_CXXFLAGS'" + fi echo "B2_FLAGS=$B2_FLAGS" >> $GITHUB_ENV # Move the Boost root to a sibling folder @@ -211,6 +216,9 @@ jobs: if [[ "${{matrix.generator}}" == "MinGW"* ]]; then extra_args+=(-DCMAKE_CXX_FLAGS="-Wa,-mbig-obj") fi + if [[ -n $B2_CXXFLAGS ]]; then + extra_args+=(-DCMAKE_CXX_FLAGS="$B2_CXXFLAGS") + fi CXX_STD=${CXX_STD##*,} # Extract last value case "$CXX_STD" in