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
|
|
|
|
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:
|
2021-03-28 13:37:04 +02:00
|
|
|
runs-on: macos-10.15
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
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]
|
|
|
|
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
|
2021-05-29 13:10:28 +02:00
|
|
|
- name: cmake
|
|
|
|
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On -DJSON_FastTests=ON
|
|
|
|
- name: build
|
|
|
|
run: cmake --build build --parallel 10
|
|
|
|
- name: test
|
|
|
|
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:
|
|
|
|
xcode: [13.3.1, 13.3, 13.2.1, 13.2, 13.1]
|
|
|
|
env:
|
|
|
|
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: cmake
|
|
|
|
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On -DJSON_FastTests=ON
|
|
|
|
- name: build
|
|
|
|
run: cmake --build build --parallel 10
|
|
|
|
- name: test
|
|
|
|
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:
|
|
|
|
standard: [11, 14, 17, 20]
|
|
|
|
env:
|
|
|
|
DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer
|
|
|
|
|
2019-09-02 21:35:53 +02:00
|
|
|
steps:
|
2022-04-06 15:14:14 +02:00
|
|
|
- uses: actions/checkout@v3
|
2021-03-28 13:37:04 +02:00
|
|
|
- name: 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 }}
|
2021-03-28 13:37:04 +02:00
|
|
|
- name: build
|
|
|
|
run: cmake --build build --parallel 10
|
|
|
|
- name: test
|
|
|
|
run: cd build ; ctest -j 10 --output-on-failure
|