Skip to content

Commit e83aa63

Browse files
committed
Clang only on linux
1 parent 207cb33 commit e83aa63

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818
matrix:
1919
compiler: [native, llvm]
2020
os: [ubuntu-latest, windows-latest]
21+
exclude:
22+
- os: windows-latest
23+
compiler: llvm
2124

2225
steps:
2326
- name: Checkout code
@@ -26,19 +29,14 @@ jobs:
2629
- name: Install CMake
2730
uses: lukka/get-cmake@latest
2831

29-
- name: Use LLVM and Clang for Linux
32+
- name: Use LLVM and Clang
3033
run: |
3134
echo "CC=clang-18" >> $GITHUB_ENV
3235
echo "CXX=clang++-18" >> $GITHUB_ENV
33-
if: ${{ matrix.os == 'ubuntu-latest' && matrix.compiler != 'native' }}
36+
if: ${{ matrix.compiler != 'native' }}
3437

35-
- name: Configure with Clang for Windows
36-
run: cmake -B build -DCPPSPEC_BUILD_TESTS=YES -DCMAKE_C_COMPILER="clang" -DCMAKE_CXX_COMPILER="clang++"
37-
if: ${{ matrix.os == 'windows-latest' && matrix.compiler == 'llvm' }}
38-
39-
- name: Configure with default compiler
40-
run: cmake -B build -DCPPSPEC_BUILD_TESTS=YES
41-
if: ${{ matrix.compiler == 'native' || matrix.os != 'windows-latest' }}
38+
- name: Configure
39+
run: cmake -B build -DCPPSPEC_BUILD_TESTS=YES -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX"
4240

4341
- name: Build
4442
run: cmake --build build --config Release

0 commit comments

Comments
 (0)