Skip to content

Commit

Permalink
Fix typo and logic on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ClausKlein committed Nov 8, 2024
1 parent 51c8dd7 commit 1116717
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,14 @@ jobs:
ninja --version
- name: Configure CMake on macos with clang
if: startsWith(matrix.compiler, 'clang') && startsWith(matrix.platform, 'macos')
if: startsWith(matrix.compiler.c, 'clang') && startsWith(matrix.platform, 'macos')
run: |
cmake -B build -S . "-DCMAKE_CXX_STANDARD=${{ matrix.cpp_version }} ${{ matrix.cmake_args.args }}"
CC=$(brew --prefix llvm@18)/bin/clang CXX=$(brew --prefix llvm@18)/bin/clang++ cmake -B build -S . "-DCMAKE_CXX_STANDARD=${{ matrix.cpp_version }} ${{ matrix.cmake_args.args }}"
env:
CC: $(brew --prefix llvm@18)/bin/clang
CXX: $(brew --prefix llvm@18)/bin/clang++
CMAKE_GENERATOR: "Ninja Multi-Config"

- name: Configure CMake
if: startsWith(matrix.compiler, 'gcc') || startsWith(matrix.platform, 'ubuntu')
if: ( startsWith(matrix.compiler.c, 'gcc') || startsWith(matrix.platform, 'ubuntu') ) || ( startsWith(matrix.compiler.c, 'gcc') && startsWith(matrix.platform, 'macos') )
run: |
cmake -B build -S . "-DCMAKE_CXX_STANDARD=${{ matrix.cpp_version }} ${{ matrix.cmake_args.args }}"
env:
Expand Down

0 comments on commit 1116717

Please sign in to comment.