diff --git a/.github/workflows/cmake.yml b/.github/workflows/ci.yml similarity index 76% rename from .github/workflows/cmake.yml rename to .github/workflows/ci.yml index 53f7d46..7be7a86 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: CMake +name: CI on: push: @@ -15,8 +15,9 @@ jobs: strategy: matrix: include: - - { os: ubuntu-22.04 } - - { os: ubuntu-24.04 } + - { os: ubuntu-22.04, cxx-compiler: g++-11 } + - { os: ubuntu-24.04, cxx-compiler: g++-13 } + - { os: ubuntu-24.04, cxx-compiler: g++-14 } runs-on: ${{ matrix.os }} # The CMake configure and build commands are platform agnostic and should work equally @@ -29,9 +30,7 @@ jobs: - uses: actions/checkout@v2 - name: Configure CMake - # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. - # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type - run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_CXX_COMPILER=${{matrix.cxx-compiler}} - name: Build # Build your program with the given configuration