-
-
Notifications
You must be signed in to change notification settings - Fork 164
81 lines (68 loc) · 2.05 KB
/
macos.yml
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
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@v4
# 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@v4
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@v4
- 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@v4
- 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