Skip to content

Commit

Permalink
Fix macos ci build
Browse files Browse the repository at this point in the history
  • Loading branch information
ClausKlein committed Nov 8, 2024
1 parent 42b2fe0 commit 9d95b65
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,27 +78,39 @@ jobs:
g++ --version
cmake --version
ninja --version
- name: Configure CMake on macos with clang
if: startsWith(matrix.compiler, 'clang') and startsWith(matrix.platform, 'macos')
run: |
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: not startsWith(matrix.compiler, 'clang') and not startsWith(matrix.platform, 'macos')
run: |
cmake -B build -S . "-DCMAKE_CXX_STANDARD=${{ matrix.cpp_version }} ${{ matrix.cmake_args.args }}"
env:
CC: ${{ matrix.compiler.c }}
CXX: ${{ matrix.compiler.cpp }}
CMAKE_GENERATOR: "Ninja Multi-Config"

- name: Build Release
run: |
cmake --build build --config Release --verbose
cmake --build build --config Release --target all_verify_interface_header_sets
cmake --install build --config Release --prefix /opt/beman.exemplar
find /opt/beman.exemplar -type f
cmake --install build --config Release --prefix /tmp/beman.exemplar
find /tmp/beman.exemplar -type f
- name: Test Release
run: ctest --test-dir build --build-config Release
- name: Build Debug
run: |
cmake --build build --config Debug --verbose
cmake --build build --config Debug --target all_verify_interface_header_sets
cmake --install build --config Debug --prefix /opt/beman.exemplar
find /opt/beman.exemplar -type f
cmake --install build --config Debug --prefix /tmp/beman.exemplar
find /tmp/beman.exemplar -type f
- name: Test Debug
run: ctest --test-dir build --build-config Debug

Expand Down

0 comments on commit 9d95b65

Please sign in to comment.