-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (38 loc) · 1.24 KB
/
test.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
on:
workflow_dispatch:
push:
branches: ["**"]
paths-ignore:
- "**/*.md"
name: 🧪 Run Tests
jobs:
test:
strategy:
fail-fast: false
matrix:
config: [Release, Debug]
type: [gcc, clang, msvc, clang-cl]
include:
- type: gcc
container: archlinux:base-devel
deps: pacman --noconfirm -Syu git cmake gcc ninja make
- type: clang
container: archlinux:base-devel
deps: pacman --noconfirm -Syu git cmake clang ninja make
- type: clang-cl
cmake_args: -T ClangCL -A x64
runs-on: ${{ (contains(matrix.type, 'msvc') || contains(matrix.type, 'clang-cl')) && 'windows-latest' || 'ubuntu-latest' }}
container: ${{ matrix.container }}
name: "${{ matrix.type }} (⚙️: ${{ matrix.config }})"
steps:
- name: 📦 Checkout
uses: actions/checkout@v4
- name: 🧰 Dependencies
run: ${{ matrix.deps }}
- name: 🔧 Compile
run: |
cmake -B build -Drebind_tests=ON ${{ matrix.cmake_args }}
cmake --build build --config ${{ matrix.config }}
- name: 🔬 Run Tests
run: |
ctest --test-dir build/tests -C ${{ matrix.config }} --verbose