-
Notifications
You must be signed in to change notification settings - Fork 12
62 lines (49 loc) · 1.48 KB
/
build.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
56
57
58
59
60
61
62
name: 🧪 Run Tests
on:
push:
pull_request:
branches:
- master
workflow_dispatch:
jobs:
test:
strategy:
fail-fast: false
matrix:
config:
- Release
- Debug
os:
- macos-latest
- windows-latest
include:
- os: ubuntu-latest
config: Release
container: ghcr.io/viennatools/vienna-builder:suite
- os: ubuntu-latest
config: Debug
container: ghcr.io/viennatools/vienna-builder:suite
runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}
name: "🧪 Test on ${{ matrix.os }} (⚙️: ${{ matrix.config }}, 💿: ${{ matrix.container || matrix.os }})"
steps:
- name: 📥 Checkout
uses: actions/checkout@v4
- name: 🖥️ Setup Environment
uses: ./.github/actions/setup
with:
os: ${{ matrix.os }}
- name: 📋 Install MacOS Dependencies
shell: bash
if: ${{ matrix.os == 'macos-latest' }}
run: |
brew install embree tbb vtk
- name: 🦥 Cache Dependencies
uses: actions/cache@v4
with:
key: test-${{ matrix.os }}-${{ matrix.config }}
path: build
- name: 🏗️ Compile
run: cmake -DVIENNAPS_BUILD_TESTS=ON -B build && cmake --build build --config ${{ matrix.config }}
- name: 🧪 Test
run: ctest -E "Benchmark|Performance" -C ${{ matrix.config }} --test-dir build