File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -30,21 +30,15 @@ jobs:
30
30
run : |
31
31
echo "CC=clang-18" >> $GITHUB_ENV
32
32
echo "CXX=clang++-18" >> $GITHUB_ENV
33
- if : ${{ matrix.os == 'ubuntu-latest' && matrix.compiler != 'native'}}
33
+ if : ${{ matrix.os == 'ubuntu-latest' && matrix.compiler != 'native' }}
34
34
35
- - name : Use LLVM and Clang for Windows
36
- run : |
37
- echo "CC=clang" >> $GITHUB_ENV
38
- echo "CXX=clang++" >> $GITHUB_ENV
39
- if : ${{ matrix.os == 'windows-latest' && matrix.compiler != 'native'}}
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' }}
40
38
41
39
- name : Configure with default compiler
42
40
run : cmake -B build -DCPPSPEC_BUILD_TESTS=YES
43
- if : ${{ matrix.compiler == 'native'}}
44
-
45
- - name : Configure with specific compiler
46
- run : cmake -B build -DCPPSPEC_BUILD_TESTS=YES -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX"
47
- if : ${{ matrix.compiler != 'native'}}
41
+ if : ${{ matrix.compiler == 'native' || matrix.os != 'windows-latest' }}
48
42
49
43
- name : Build
50
44
run : cmake --build build --config Release
You can’t perform that action at this time.
0 commit comments