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 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
You can’t perform that action at this time.
0 commit comments