Skip to content

Commit

Permalink
feat: Merge branch 'ci-osx-latest'
Browse files Browse the repository at this point in the history
  • Loading branch information
ToruNiina committed Aug 7, 2024
2 parents 91b7cd6 + 834ec3a commit f886a91
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
70 changes: 70 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ jobs:
- {compiler: '12', standard: '20'}
- {compiler: '11', standard: '20'}
steps:
- name: Get number of CPU cores
uses: SimenB/github-actions-cpu-cores@v2
id: cpu-cores
- name: Checkout
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -75,6 +78,9 @@ jobs:
- {compiler: 'g++-8', standard: '17'}
- {compiler: 'g++-8', standard: '20'}
steps:
- name: Get number of CPU cores
uses: SimenB/github-actions-cpu-cores@v2
id: cpu-cores
- name: Checkout
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -107,6 +113,9 @@ jobs:
- {compiler: '8', standard: '20'}
- {compiler: '9', standard: '20'}
steps:
- name: Get number of CPU cores
uses: SimenB/github-actions-cpu-cores@v2
id: cpu-cores
- name: Checkout
uses: actions/checkout@v4
with:
Expand All @@ -126,13 +135,68 @@ 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:
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:
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:
Expand All @@ -154,6 +218,9 @@ jobs:
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:
Expand All @@ -176,6 +243,9 @@ jobs:
config: ['Release', 'Debug']
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:
Expand Down
1 change: 1 addition & 0 deletions include/toml11/fwd/comments_fwd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// to use __has_builtin
#include "../version.hpp" // IWYU pragma: keep

#include <exception>
#include <initializer_list>
#include <iterator>
#include <stdexcept>
Expand Down

0 comments on commit f886a91

Please sign in to comment.