-
Notifications
You must be signed in to change notification settings - Fork 9
45 lines (38 loc) · 1.09 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
on:
pull_request:
push:
branches:
- main
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
jobs:
build:
strategy:
matrix:
cxx_standard: [11, 14, 17]
build_type: ["Release", "Debug"]
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install system dependencies
run: |
brew install ninja cmake
python3 -m pip install --no-cache-dir conan==1.63 --break-system-packages
- name: Configure CMake
env:
BUILD_TYPE: ${{matrix.build_type}}
CXX_STANDARD: ${{matrix.cxx_standard}}
run: |
mkdir -p build
cmake -B build -GNinja \
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
-DCMAKE_CXX_STANDARD=${{matrix.cxx_standard}} \
-DALLOW_EXAMPLES=ON \
-DALLOW_TESTS=ON \
-DENABLE_TESTS_MEASUREMENTS=ON \
-DALLOW_BENCHMARK=ON
- name: Build
run: cmake --build build
- name: Test
working-directory: build
run: ctest --rerun-failed --output-on-failure