From 5e96c90996cbff352f8501c0112dda32c5e96fe1 Mon Sep 17 00:00:00 2001 From: Alexander Wilms Date: Thu, 4 Jan 2024 17:05:34 +0000 Subject: [PATCH] CI: Build linux-gcc-test preset with gcc 13 This helps detecting issues with newer gcc versions, like #2866 Fixes #3407 --- .github/workflows/github.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/github.yml b/.github/workflows/github.yml index 219754038..f3f84aec8 100644 --- a/.github/workflows/github.yml +++ b/.github/workflows/github.yml @@ -73,7 +73,7 @@ jobs: test: 0 preset: linux-clang-test - platform: linux - os: ubuntu-20.04 + os: ubuntu-22.04 test: 0 preset: linux-gcc-test - platform: linux @@ -242,11 +242,12 @@ jobs: env: PULL_REQUEST: ${{ github.event.pull_request.number }} - - name: CMake Preset with ccache + - name: Configure run: | - cmake -DENABLE_CCACHE:BOOL=ON --preset ${{ matrix.preset }} + if [[ ${{matrix.preset}} == linux-gcc-test ]]; then GCC13=1; fi + cmake -DENABLE_CCACHE:BOOL=ON --preset ${{ matrix.preset }} ${GCC13:+-DCMAKE_C_COMPILER=gcc-13 -DCMAKE_CXX_COMPILER=g++-13} - - name: Build Preset + - name: Build run: | cmake --build --preset ${{matrix.preset}}