Skip to content

Commit 4ca333d

Browse files
committed
upgrade Clang
1 parent 5c04495 commit 4ca333d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,19 @@ jobs:
2828
- name: Install CMake
2929
uses: lukka/get-cmake@latest
3030

31+
- name: Install LLVM and Clang
32+
uses: KyleMayes/install-llvm-action@v2
33+
with:
34+
version: "20"
35+
env: true
36+
if: ${{ matrix.compiler == 'llvm'}}
37+
3138
- name: Configure for native compiler
3239
run: cmake -B build -DCPPSPEC_BUILD_TESTS=YES
3340
if: ${{ matrix.compiler == 'native'}}
3441

3542
- name: Configure for non-native compiler
36-
run: cmake -B build -G Ninja -DCPPSPEC_BUILD_TESTS=YES -DCMAKE_C_COMPILER="clang" -DCMAKE_CXX_COMPILER="clang++"
43+
run: cmake -B build -G Ninja -DCPPSPEC_BUILD_TESTS=YES -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX"
3744
if: ${{ matrix.compiler != 'native'}}
3845

3946
- name: Build

0 commit comments

Comments
 (0)