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 696ee75
Showing 1 changed file with 40 additions and 2 deletions.
42 changes: 40 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,52 @@ jobs:
ctest --test-dir "${{ github.workspace }}\build" -C Release
shell: bash

ubuntu-build:
ubuntu2204-build:
strategy:
fail-fast: false
matrix:
compiler:
[
{ c: "gcc-11", cxx: "g++-11" },
]
name: Ubuntu - ${{ matrix.compiler.cxx }}
runs-on: ubuntu-22.04

env:
triplet: x64-linux

steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Install compilers
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
brew install ninja
- 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
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" },
{
c: "$(brew --prefix llvm@15)/bin/clang",
cxx: "$(brew --prefix llvm@15)/bin/clang++",
Expand All @@ -72,7 +110,7 @@ jobs:
},
]
name: Ubuntu - ${{ matrix.compiler.cxx }}
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

env:
triplet: x64-linux
Expand Down

0 comments on commit 696ee75

Please sign in to comment.