Fix failed CI builds by updating their configuration #425
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: macOS | |
on: | |
push: | |
paths-ignore: | |
- 'README.md' | |
- 'doc/**' | |
pull_request: | |
paths-ignore: | |
- 'README.md' | |
- 'doc/**' | |
jobs: | |
xcode: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- llvm: 18 | |
build_type: Debug | |
os: macos-14 | |
- llvm: 18 | |
build_type: Release | |
os: macos-14 | |
- llvm: 16 | |
build_type: Debug | |
os: macos-13 | |
- llvm: 16 | |
build_type: Release | |
os: macos-13 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install Dependencies | |
run: | | |
brew update | |
brew install llvm@${{ matrix.llvm }} | |
brew install ninja | |
- uses: actions/checkout@v4 | |
- name: Configure CMake | |
run: | | |
cmake -S $GITHUB_WORKSPACE -B build \ | |
-GNinja \ | |
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ | |
-DCMAKE_CXX_COMPILER=$(brew --prefix llvm@${{ matrix.llvm }})/bin/clang++ \ | |
-DCMAKE_LINKER=$(brew --prefix llvm@${{ matrix.llvm }})/bin/ld.lld | |
- name: Build project | |
run: cmake --build build/ --config ${{ matrix.build_type }} | |
- name: Run tests | |
working-directory: build/ | |
run: ctest -C ${{ matrix.build_type }} --output-on-failure |