diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4c80799..fb88e0a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -46,7 +46,7 @@ jobs: ctest --test-dir "${{ github.workspace }}\build" -C Release shell: bash - ubuntu-build: + ubuntu2204-build: strategy: fail-fast: false matrix: @@ -72,7 +72,7 @@ jobs: }, ] name: Ubuntu - ${{ matrix.compiler.cxx }} - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 env: triplet: x64-linux @@ -100,6 +100,40 @@ jobs: cmake --build ${{ github.workspace }}/build --config Release --clean-first ctest --test-dir ${{ github.workspace }}/build -C Release + ubuntu2404-build: + strategy: + fail-fast: false + matrix: + compiler: + [ + { c: "gcc-12", cxx: "g++-12" }, + { c: "gcc-12", cxx: "g++-13" }, + { c: "gcc-12", cxx: "g++-14" }, + ] + name: Ubuntu - ${{ matrix.compiler.cxx }} + runs-on: ubuntu-24.04 + + env: + triplet: x64-linux + + steps: + - uses: actions/checkout@v4 + with: + submodules: true + + - name: Install dependencies + run: vcpkg install gtest --triplet ${{ env.triplet }} + + - name: Build and test + run: | + eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" + rm -rf ${{ github.workspace }}/build + cmake -B ${{ github.workspace }}/build -DCMAKE_TOOLCHAIN_FILE=$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=${{ env.triplet }} -DCMAKE_CXX_COMPILER=${{ matrix.compiler.cxx }} -G "Ninja Multi-Config" + cmake --build ${{ github.workspace }}/build --config Debug --clean-first + ctest --test-dir ${{ github.workspace }}/build -C Debug + cmake --build ${{ github.workspace }}/build --config Release --clean-first + ctest --test-dir ${{ github.workspace }}/build -C Release + macos-build: strategy: fail-fast: false