Skip to content

Commit

Permalink
🔧 Add GCC14 to GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
yosh-matsuda committed Jul 2, 2024
1 parent 164a708 commit c7f6e81
Showing 1 changed file with 36 additions and 2 deletions.
38 changes: 36 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
ctest --test-dir "${{ github.workspace }}\build" -C Release
shell: bash

ubuntu-build:
ubuntu2204-build:
strategy:
fail-fast: false
matrix:
Expand All @@ -72,7 +72,7 @@ jobs:
},
]
name: Ubuntu - ${{ matrix.compiler.cxx }}
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

env:
triplet: x64-linux
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c7f6e81

Please sign in to comment.