• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1name: macOS
2
3on:
4  push:
5    branches:
6      - develop
7      - master
8      - release/*
9  pull_request:
10
11jobs:
12  xcode:
13    runs-on: macos-10.15
14    strategy:
15      matrix:
16        xcode: [12.4, 12.3, 12.2, 12.1.1, 12.1, 12, 11.7, 11.6, 11.5, 11.4.1, 11.3.1, 11.2.1, 10.3]
17    env:
18      DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
19
20    steps:
21      - uses: actions/checkout@v2
22      - name: cmake
23        run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On -DJSON_FastTests=ON
24      - name: build
25        run: cmake --build build --parallel 10
26      - name: test
27        run: cd build ; ctest -j 10 --output-on-failure
28
29  xcode_standards:
30    runs-on: macos-10.15
31    strategy:
32      matrix:
33        standard: [11, 14, 17, 20]
34    env:
35      DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer
36
37    steps:
38      - uses: actions/checkout@v2
39      - name: cmake
40        run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On -DCMAKE_CXX_STANDARD=${{ matrix.standard }} -DCMAKE_CXX_STANDARD_REQUIRED=ON
41      - name: build
42        run: cmake --build build --parallel 10
43      - name: test
44        run: cd build ; ctest -j 10 --output-on-failure
45