-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.11 KB
/
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
53
54
55
name: ci
on:
push:
branches: [ "master" ]
paths-ignore:
- '**/*.md'
- '**/*.txt'
pull_request:
branches: [ "master" ]
paths-ignore:
- '**/*.md'
- '**/*.txt'
defaults:
run:
# This forces shell to be login shell and load the user's profile that activates the conda environment
# https://github.com/marketplace/actions/setup-micromamba#about-login-shells
shell: bash -leo pipefail {0}
jobs:
build:
strategy:
fail-fast: true
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
build_type: [Debug, RelWithDebInfo]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
init-shell: bash
- name: configure
env:
CC: clang
CXX: clang++
run: |
mkdir -p build
cd build
cmake -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ..
- name: build
run: cmake --build build
- name: test
run: |
cd build
ctest --output-on-failure