File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 18
18
matrix :
19
19
compiler : [native, llvm]
20
20
os : [ubuntu-latest, windows-latest]
21
+ exclude :
22
+ - os : windows-latest
23
+ compiler : llvm
21
24
22
25
steps :
23
26
- name : Checkout code
@@ -26,19 +29,14 @@ jobs:
26
29
- name : Install CMake
27
30
uses : lukka/get-cmake@latest
28
31
29
- - name : Use LLVM and Clang for Linux
32
+ - name : Use LLVM and Clang
30
33
run : |
31
34
echo "CC=clang-18" >> $GITHUB_ENV
32
35
echo "CXX=clang++-18" >> $GITHUB_ENV
33
- if : ${{ matrix.os == 'ubuntu-latest' && matrix. compiler != 'native' }}
36
+ if : ${{ matrix.compiler != 'native' }}
34
37
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"
42
40
43
41
- name : Build
44
42
run : cmake --build build --config Release
You can’t perform that action at this time.
0 commit comments