-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 968 Bytes
/
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
name: macOS
on: [push, pull_request]
jobs:
build:
runs-on: macos-12
strategy:
matrix:
cxx: [20]
build_mode: ["Release"]
fail-fast: false
name: ${{ matrix.cxx }} - ${{ matrix.build_mode }}
steps:
- name: Check out code
uses: actions/checkout@v3
with:
submodules: recursive
lfs: true
- name: Install dependencies
run: |
brew install ninja conan
conan config set general.revisions_enabled=1
- name: CMake configure
run: >
cmake
-S .
-G Ninja
-B build
-D CMAKE_BUILD_TYPE=${{ matrix.build_mode }}
-D CMAKE_CXX_STANDARD="${{ matrix.cxx }}"
-D CMAKE_UNITY_BUILD=ON
- name: CMake build
run: cmake --build build --config ${{ matrix.build_mode }}
- name: CTest
run: ctest --test-dir build -C ${{ matrix.build_mode }} --output-on-failure