-
Notifications
You must be signed in to change notification settings - Fork 175
69 lines (66 loc) · 1.77 KB
/
ci_macos_appleclang.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
name: CI macOS/AppleClang
on:
push:
pull_request:
defaults:
run:
shell: bash
jobs:
build:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {
name: "macOS 11 AppleClang 13",
os: macos-11,
build_type: Debug,
cxx_standard: 17
}
- {
name: "macOS 13 AppleClang 14 C++11",
os: macos-13,
build_type: Debug,
cxx_standard: 11
}
- {
name: "macOS 13 AppleClang 14 C++14",
os: macos-13,
build_type: Debug,
cxx_standard: 14
}
- {
name: "macOS 13 AppleClang 14 C++17",
os: macos-13,
build_type: Debug,
cxx_standard: 17
}
- {
name: "macOS 13 AppleClang 14 C++20",
os: macos-13,
build_type: Debug,
cxx_standard: 20
}
- {
name: "macOS 13 AppleClang with sanitizers",
os: macos-13,
build_type: Debug,
cxx_standard: 17,
enable_sanitizers_in_tests: ON
}
steps:
- uses: actions/checkout@v3
- name: Build project
run: |
cmake -S . -B build \
-DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} \
-DENABLE_TESTING=ON \
-DWARNINGS_AS_ERRORS_FOR_TESTS=ON \
-DOVERRIDE_CXX_STANDARD_FOR_TESTS=${{ matrix.config.cxx_standard }} \
-DENABLE_SANITIZERS_IN_TESTS=${{ matrix.config.enable_sanitizers_in_tests }}
cmake --build build -j
- name: Run tests
run: |
ctest --test-dir build/ --verbose