-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (54 loc) · 1.47 KB
/
tests.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
---
name: tests
"on":
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-20.04
- ubuntu-24.04
- macos-12
- macos-14
- windows-2019
- windows-2022
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Configure CMake
run: cmake -B ${{ vars.BUILD_DIR }}
- name: Build tests
run: cmake --build ${{ vars.BUILD_DIR }}
- name: Run tests
run: ctest --output-on-failure --test-dir ${{ vars.BUILD_DIR }}
test-modules:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-24.04
- windows-2022
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Configure CMake (LLVM Clang)
if: ${{ matrix.os == 'ubuntu-24.04' }}
run: |
sudo apt install ninja-build
cmake -B ${{ vars.BUILD_DIR }}
-DTMP_USE_MODULES:BOOL=ON
-DCMAKE_CXX_COMPILER=clang++-17
-G Ninja
- name: Configure CMake (MSVC)
if: ${{ matrix.os == 'ubuntu-24.04' }}
run: cmake -B ${{ vars.BUILD_DIR }} -DTMP_USE_MODULES:BOOL=ON
- name: Build tests
run: cmake --build ${{ vars.BUILD_DIR }}
- name: Run tests
run: ctest --output-on-failure --test-dir ${{ vars.BUILD_DIR }}