Skip to content

Commit

Permalink
Merge pull request #2790 from nlohmann/macos_standards
Browse files Browse the repository at this point in the history
Add C++ standards to macOS matrix
  • Loading branch information
nlohmann committed Jun 14, 2021
2 parents 71a514a + fde6e1f commit 18a5f4c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,20 @@ jobs:
run: cmake --build build --parallel 10
- name: test
run: cd build ; ctest -j 10 --output-on-failure

xcode_standards:
runs-on: macos-10.15
strategy:
matrix:
standard: [11, 14, 17, 20]
env:
DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer

steps:
- uses: actions/checkout@v2
- name: cmake
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DCMAKE_CXX_STANDARD_REQUIRED=ON
- name: build
run: cmake --build build --parallel 10
- name: test
run: cd build ; ctest -j 10 --output-on-failure

0 comments on commit 18a5f4c

Please sign in to comment.