1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 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 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
|
name: macOS
on: [push, pull_request]
permissions:
contents: read
jobs:
# xcode_11:
# strategy:
# fail-fast: false
# matrix:
# xcode: ['11','12','13']
# runs-on: macos-11
#
# steps:
# - uses: actions/checkout@v6
# with:
# submodules: recursive
# - uses: maxim-lobanov/setup-xcode@v1
# with:
# xcode-version: ${{ matrix.xcode }}
# - name: cmake
# run: cmake -S . -B build -DJSONCONS_SANITIZE=ON -DCMAKE_BUILD_TYPE=Debug -DJSONCONS_BUILD_TESTS=On
# - name: build
# working-directory: build/
# run: cmake --build .
# - name: test
# working-directory: build/
# run: ctest --output-on-failure
# xcode_12:
# strategy:
# fail-fast: false
# matrix:
# xcode: ['13','14']
# runs-on: macos-12
#
# steps:
# - uses: actions/checkout@v6
# with:
# submodules: recursive
# - uses: maxim-lobanov/setup-xcode@v1
# with:
# xcode-version: ${{ matrix.xcode }}
# - name: cmake
# run: cmake -S . -B build -DJSONCONS_SANITIZE=ON -DCMAKE_BUILD_TYPE=Debug -DJSONCONS_BUILD_TESTS=On
# - name: build
# working-directory: build/
# run: cmake --build .
# - name: test
# working-directory: build/
# run: ctest --output-on-failure
xcode_2:
runs-on: macos-latest
steps:
- uses: actions/checkout@v6
- name: cmake
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DJSONCONS_BUILD_TESTS=On -DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_STANDARD_REQUIRED=ON
- name: build
run: cmake --build build --parallel 10
- name: test
run: cd build ; ctest -j 10 --output-on-failure
xcode_3:
runs-on: macos-latest
steps:
- uses: actions/checkout@v6
- name: cmake
run: cmake -S . -B build -DJSONCONS_SANITIZE=ON -DCMAKE_BUILD_TYPE=Debug -DJSONCONS_BUILD_TESTS=On -DCMAKE_CXX_STANDARD=17 -DCMAKE_CXX_STANDARD_REQUIRED=ON
- name: build
run: cmake --build build --parallel 10
- name: test
run: cd build ; ctest -j 10 --output-on-failure
xcode_26:
strategy:
fail-fast: false
matrix:
xcode: ['26']
build_type: [Debug, Release]
runs-on: macos-latest
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode }}
- name: cmake
run: cmake -S . -B build -DJSONCONS_SANITIZE=ON -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DJSONCONS_BUILD_TESTS=On
- name: build
working-directory: build/
run: cmake --build .
- name: test
working-directory: build/
run: ctest --output-on-failure
|