-
-
Notifications
You must be signed in to change notification settings - Fork 17
52 lines (41 loc) · 1.03 KB
/
macos-ci.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
name: macOS CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- uses: BSFishy/pip-action@v1
with:
packages: conan
- name: Cache Conan
uses: actions/cache@v2
with:
path: ~/.conan
key: conan-cache-${{ hashFiles('**/conanfile.txt') }}-macos
- name: Install Conan Dependencies
run: |
for dir in . test; do
conan install $dir -if deps \
-o boost:without_fiber=True \
--build missing
done
- name: Configure Hsm
run: cmake -S test -B build -D CMAKE_BUILD_TYPE=Release
-D "CMAKE_PREFIX_PATH=${PWD}/deps"
- name: Build Hsm
run: cmake --build build -j 2
- name: Install Hsm
run: cmake --install build --prefix install
- name: Run Hsm Tests
working-directory: build
run: ctest --output-on-failure