mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-16 16:28:09 +08:00
ci: add osx-14 to build envs
This commit is contained in:
24
.github/workflows/main.yml
vendored
24
.github/workflows/main.yml
vendored
@@ -126,6 +126,30 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
ctest --output-on-failure --test-dir build/
|
ctest --output-on-failure --test-dir build/
|
||||||
|
|
||||||
|
build-osx-14:
|
||||||
|
runs-on: macos-14
|
||||||
|
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: 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-13:
|
build-osx-13:
|
||||||
runs-on: macos-13
|
runs-on: macos-13
|
||||||
strategy:
|
strategy:
|
||||||
|
Reference in New Issue
Block a user