From 9f7434bc6ef03cdc8eb0273628a84694343a38bc Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Wed, 7 Aug 2024 00:41:17 +0900 Subject: [PATCH] ci: add osx-14 to build envs --- .github/workflows/main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 36a68be..5a9b3a0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -126,6 +126,30 @@ jobs: run: | 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: runs-on: macos-13 strategy: