Skip to content

Commit

Permalink
ci: add macos with latest (unstable) xcode
Browse files Browse the repository at this point in the history
  • Loading branch information
ToruNiina committed Aug 7, 2024
1 parent 6421df3 commit df8f978
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,34 @@ jobs:
run: |
ctest --output-on-failure --test-dir build/
build-osx-latest:
runs-on: macos-latest
strategy:
matrix:
standard: ['11', '14', '17', '20']
precompile: ['ON', 'OFF']
steps:
- name: Get number of CPU cores
uses: SimenB/github-actions-cpu-cores@v2
id: cpu-cores
- name: Set xcode latest unstable
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Configure
run: |
cmake -B build/ -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DTOML11_BUILD_TESTS=ON -DTOML11_PRECOMPILE=${{ matrix.precompile }}
- name: Build
run: |
cmake --build build/ -j${{ steps.cpu-cores.outputs.count }}
- name: Test
run: |
ctest --output-on-failure --test-dir build/
build-osx-14:
runs-on: macos-14
strategy:
Expand Down

0 comments on commit df8f978

Please sign in to comment.