2020-05-12 20:30:11 +02:00
|
|
|
name: macOS
|
2019-09-02 21:35:53 +02:00
|
|
|
|
2021-03-28 14:59:42 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- develop
|
|
|
|
- master
|
2021-08-15 22:49:31 +02:00
|
|
|
- release/*
|
2021-03-28 14:59:42 +02:00
|
|
|
pull_request:
|
2022-03-06 13:54:00 +01:00
|
|
|
workflow_dispatch:
|
2019-09-02 21:35:53 +02:00
|
|
|
|
2023-03-13 12:14:35 +01:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2022-07-28 21:51:32 +02:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2019-09-02 21:35:53 +02:00
|
|
|
jobs:
|
2022-06-03 14:03:14 +02:00
|
|
|
xcode_1:
|
2022-08-03 09:15:16 +02:00
|
|
|
runs-on: macos-11
|
2021-03-28 13:37:04 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-08-03 09:15:16 +02:00
|
|
|
xcode: ['11.7', '12.4', '12.5.1', '13.0']
|
2021-03-28 13:37:04 +02:00
|
|
|
env:
|
|
|
|
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
|
2020-05-12 20:26:17 +02:00
|
|
|
|
2021-05-29 13:10:28 +02:00
|
|
|
steps:
|
2022-04-06 15:14:14 +02:00
|
|
|
- uses: actions/checkout@v3
|
2022-08-03 18:37:02 +02:00
|
|
|
- name: Run CMake
|
2021-05-29 13:10:28 +02:00
|
|
|
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On -DJSON_FastTests=ON
|
2022-08-03 18:37:02 +02:00
|
|
|
- name: Build
|
2021-05-29 13:10:28 +02:00
|
|
|
run: cmake --build build --parallel 10
|
2022-08-03 18:37:02 +02:00
|
|
|
- name: Test
|
2021-05-29 13:10:28 +02:00
|
|
|
run: cd build ; ctest -j 10 --output-on-failure
|
|
|
|
|
2022-06-03 14:03:14 +02:00
|
|
|
xcode_2:
|
|
|
|
runs-on: macos-12
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-12-04 14:03:54 +01:00
|
|
|
xcode: ['13.1', '13.2.1', '13.3.1', '13.4.1', '14.0', '14.0.1', '14.1']
|
2022-06-03 14:03:14 +02:00
|
|
|
env:
|
|
|
|
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2022-08-03 18:37:02 +02:00
|
|
|
- name: Run CMake
|
2022-06-03 14:03:14 +02:00
|
|
|
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On -DJSON_FastTests=ON
|
2022-08-03 18:37:02 +02:00
|
|
|
- name: Build
|
2022-06-03 14:03:14 +02:00
|
|
|
run: cmake --build build --parallel 10
|
2022-08-03 18:37:02 +02:00
|
|
|
- name: Test
|
2022-06-03 14:03:14 +02:00
|
|
|
run: cd build ; ctest -j 10 --output-on-failure
|
|
|
|
|
2021-05-29 13:10:28 +02:00
|
|
|
xcode_standards:
|
2022-06-03 14:03:14 +02:00
|
|
|
runs-on: macos-latest
|
2021-05-29 13:10:28 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-05-21 17:23:18 +02:00
|
|
|
standard: [11, 14, 17, 20, 23]
|
2021-05-29 13:10:28 +02:00
|
|
|
|
2019-09-02 21:35:53 +02:00
|
|
|
steps:
|
2022-04-06 15:14:14 +02:00
|
|
|
- uses: actions/checkout@v3
|
2022-08-03 18:37:02 +02:00
|
|
|
- name: Run CMake
|
2022-03-24 07:54:07 +01:00
|
|
|
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On -DJSON_TestStandards=${{ matrix.standard }}
|
2022-08-03 18:37:02 +02:00
|
|
|
- name: Build
|
2021-03-28 13:37:04 +02:00
|
|
|
run: cmake --build build --parallel 10
|
2022-08-03 18:37:02 +02:00
|
|
|
- name: Test
|
2021-03-28 13:37:04 +02:00
|
|
|
run: cd build ; ctest -j 10 --output-on-failure
|