Skip to content

Commit

Permalink
🔧 Add LLVM18 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 523ba49 commit 8fcb871
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ jobs:
strategy:
fail-fast: false
matrix:
compiler:
[
{ c: "clang-cl", cxx: "clang-cl" },
{ c: "cl", cxx: "cl" },
]
compiler: [{ c: "clang-cl", cxx: "clang-cl" }, { c: "cl", cxx: "cl" }]
name: Windows - ${{ matrix.compiler.cxx }}
runs-on: windows-latest

Expand Down Expand Up @@ -71,6 +67,10 @@ jobs:
c: "$(brew --prefix llvm@17)/bin/clang",
cxx: "$(brew --prefix llvm@17)/bin/clang++",
},
{
c: "$(brew --prefix llvm@18)/bin/clang",
cxx: "$(brew --prefix llvm@18)/bin/clang++",
},
]
name: Ubuntu - ${{ matrix.compiler.cxx }}
runs-on: ubuntu-latest
Expand All @@ -86,10 +86,10 @@ jobs:
- name: Install compilers
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
brew install ninja llvm@12 llvm@13 llvm@14 llvm@15 llvm@16 llvm@17
brew install ninja llvm@15 llvm@16 llvm@17 llvm@18
- name: Install dependencies
run: CC=${{ matrix.compiler.c }} CXX=${{ matrix.compiler.cxx }} vcpkg install gtest --triplet ${{ env.triplet }}
run: vcpkg install gtest --triplet ${{ env.triplet }}

- name: Build and test
run: |
Expand Down Expand Up @@ -118,9 +118,13 @@ jobs:
c: "$(brew --prefix llvm@17)/bin/clang",
cxx: "$(brew --prefix llvm@17)/bin/clang++",
},
{
c: "$(brew --prefix llvm@18)/bin/clang",
cxx: "$(brew --prefix llvm@18)/bin/clang++",
},
]
name: MacOS - ${{ matrix.compiler.cxx }}
runs-on: macos-latest
runs-on: macos-13

env:
triplet: x64-osx
Expand All @@ -131,7 +135,7 @@ jobs:
submodules: true

- name: Install compilers
run: brew install ninja llvm@12 llvm@13 llvm@14 llvm@15 llvm@16 llvm@17
run: brew install ninja llvm@16 llvm@17 llvm@18

- name: Install dependencies
run: CC=${{ matrix.compiler.c }} CXX=${{ matrix.compiler.cxx }} vcpkg install gtest --triplet ${{ env.triplet }}
Expand Down

0 comments on commit 8fcb871

Please sign in to comment.