-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (40 loc) · 1.26 KB
/
Copy pathci.yml
File metadata and controls
55 lines (40 loc) · 1.26 KB
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
name: Continuous Integration
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
strategy:
matrix:
os: [macos, ubuntu, windows]
type: [shared, static]
include:
- { type: shared, shared: YES }
- { type: static, shared: NO }
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v1
- name: Get Conan
uses: turtlebrowser/get-conan@v1.0
- name: Create Conan profile
run: conan profile new default --detect
- name: Switch Conan profile to C++11 ABI
run: conan profile update settings.compiler.libcxx=libstdc++11 default
if: ${{ matrix.os == 'ubuntu' }}
- name: Get dependencies
run: conan install . --build=missing -s build_type=Release -o testing=True
- name: Configure
run: cmake --preset=ci-${{ matrix.os }}
-D BUILD_SHARED_LIBS=${{ matrix.shared }}
-D CMAKE_MODULE_PATH=${{ github.workspace }}
- name: Build
run: cmake --build build --config Release -j 2
- name: Install
run: cmake --install build --config Release --prefix prefix
- name: Test
working-directory: build
run: ctest -C Release -j 2