Skip to content

Commit 92f30c5

Browse files
committed
explicitly point to compiler (for windows)
1 parent 8e3978c commit 92f30c5

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

.github/workflows/test.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,27 @@ jobs:
2828
- name: Install CMake
2929
uses: lukka/get-cmake@latest
3030

31-
- name: Install LLVM and Clang
31+
- name: Install LLVM and Clang 17
3232
uses: KyleMayes/install-llvm-action@v1
3333
with:
34-
version: "15"
35-
env: ${{ matrix.compiler == 'llvm' }}
36-
if: ${{ matrix.compiler == 'llvm' }}
34+
version: "17"
35+
env: true
36+
if: ${{ matrix.compiler == 'llvm' && matrix.os != 'macos-latest' }}
3737

38-
- name: Configure
39-
run: cmake -Bbuild -DBUILD_TESTS=YES
38+
- name: Install LLVM and Clang 15
39+
uses: KyleMayes/install-llvm-action@v1
40+
with:
41+
version: "15.0.7"
42+
env: true
43+
if: ${{ matrix.compiler == 'llvm' && matrix.os == 'macos-latest' }}
44+
45+
- name: Configure for native compiler
46+
run: cmake -B build -DBUILD_TESTS=YES
47+
if: ${{ matrix.compiler == 'native'}}
48+
49+
- name: Configure for non-native compiler
50+
run: cmake -B build -G Ninja -DBUILD_TESTS=YES -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX"
51+
if: ${{ matrix.compiler != 'native'}}
4052

4153
- name: Build
4254
run: cmake --build build --config Release

0 commit comments

Comments
 (0)