|
| 1 | +name: macOS |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - develop |
| 7 | + - master |
| 8 | + - release/* |
| 9 | + pull_request: |
| 10 | + workflow_dispatch: |
| 11 | + |
| 12 | +concurrency: |
| 13 | + group: ${{ github.workflow }}-${{ github.ref || github.run_id }} |
| 14 | + cancel-in-progress: true |
| 15 | + |
| 16 | +permissions: |
| 17 | + contents: read |
| 18 | + |
| 19 | +jobs: |
| 20 | +# macos-11 is deprecated |
| 21 | +# macos-11: |
| 22 | +# runs-on: macos-11 |
| 23 | +# strategy: |
| 24 | +# matrix: |
| 25 | +# xcode: ['11.7', '12.4', '12.5.1', '13.0'] |
| 26 | +# env: |
| 27 | +# DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer |
| 28 | +# |
| 29 | +# steps: |
| 30 | +# - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 31 | +# - name: Run CMake |
| 32 | +# run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On -DJSON_FastTests=ON |
| 33 | +# - name: Build |
| 34 | +# run: cmake --build build --parallel 10 |
| 35 | +# - name: Test |
| 36 | +# run: cd build ; ctest -j 10 --output-on-failure |
| 37 | + |
| 38 | +# macos-12 is deprecated (https://github.com/actions/runner-images/issues/10721) |
| 39 | +# macos-12: |
| 40 | +# runs-on: macos-12 # https://github.com/actions/runner-images/blob/main/images/macos/macos-12-Readme.md |
| 41 | +# strategy: |
| 42 | +# matrix: |
| 43 | +# xcode: ['13.1', '13.2.1', '13.3.1', '13.4.1', '14.0', '14.0.1', '14.1'] |
| 44 | +# env: |
| 45 | +# DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer |
| 46 | +# |
| 47 | +# steps: |
| 48 | +# - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 49 | +# - name: Run CMake |
| 50 | +# run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On -DJSON_FastTests=ON |
| 51 | +# - name: Build |
| 52 | +# run: cmake --build build --parallel 10 |
| 53 | +# - name: Test |
| 54 | +# run: cd build ; ctest -j 10 --output-on-failure |
| 55 | + |
| 56 | + macos-13: |
| 57 | + runs-on: macos-13 # https://github.com/actions/runner-images/blob/main/images/macos/macos-13-Readme.md |
| 58 | + strategy: |
| 59 | + matrix: |
| 60 | + xcode: ['14.1', '14.2', '14.3', '14.3.1', '15.0.1', '15.1', '15.2'] |
| 61 | + env: |
| 62 | + DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer |
| 63 | + |
| 64 | + steps: |
| 65 | + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 66 | + - name: Run CMake |
| 67 | + run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On -DJSON_FastTests=ON |
| 68 | + - name: Build |
| 69 | + run: cmake --build build --parallel 10 |
| 70 | + - name: Test |
| 71 | + run: cd build ; ctest -j 10 --output-on-failure |
| 72 | + |
| 73 | + macos-14: |
| 74 | + runs-on: macos-14 # https://github.com/actions/runner-images/blob/main/images/macos/macos-14-Readme.md |
| 75 | + strategy: |
| 76 | + matrix: |
| 77 | + xcode: ['15.3', '15.4'] |
| 78 | + env: |
| 79 | + DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer |
| 80 | + |
| 81 | + steps: |
| 82 | + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 83 | + - name: Run CMake |
| 84 | + run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On -DJSON_FastTests=ON |
| 85 | + - name: Build |
| 86 | + run: cmake --build build --parallel 10 |
| 87 | + - name: Test |
| 88 | + run: cd build ; ctest -j 10 --output-on-failure |
| 89 | + |
| 90 | + macos-15: |
| 91 | + runs-on: macos-15 # https://github.com/actions/runner-images/blob/main/images/macos/macos-15-Readme.md |
| 92 | + strategy: |
| 93 | + matrix: |
| 94 | + xcode: ['16.0', '16.1', '16.2'] |
| 95 | + env: |
| 96 | + DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer |
| 97 | + |
| 98 | + steps: |
| 99 | + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 100 | + - name: Run CMake |
| 101 | + run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On -DJSON_FastTests=ON |
| 102 | + - name: Build |
| 103 | + run: cmake --build build --parallel 10 |
| 104 | + - name: Test |
| 105 | + run: cd build ; ctest -j 10 --output-on-failure |
| 106 | + |
| 107 | + xcode_standards: |
| 108 | + runs-on: macos-latest |
| 109 | + strategy: |
| 110 | + matrix: |
| 111 | + standard: [11, 14, 17, 20, 23, 26] |
| 112 | + |
| 113 | + steps: |
| 114 | + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 115 | + - name: Run CMake |
| 116 | + run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On -DJSON_TestStandards=${{ matrix.standard }} |
| 117 | + - name: Build |
| 118 | + run: cmake --build build --parallel 10 |
| 119 | + - name: Test |
| 120 | + run: cd build ; ctest -j 10 --output-on-failure |
0 commit comments