-
Notifications
You must be signed in to change notification settings - Fork 6
43 lines (28 loc) · 939 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
41
42
43
name: MacOS
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
BUILD_TYPE: Debug
jobs:
build:
runs-on: macos-12
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Get Conan
uses: turtlebrowser/[email protected]
- name: Create default profile
run: conan profile detect
- name: install dependencies
run: conan install . --output-folder=build --build=missing --settings=build_type=${{env.BUILD_TYPE}}
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DENABLE_TEST_COVERAGE=1 -DCMAKE_PREFIX_PATH=${{github.workspace}}/build
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/build/test
run: ./tests