| 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 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
macos-13: |
| 57 |
runs-on: macos-13 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |