-
Notifications
You must be signed in to change notification settings - Fork 4
67 lines (66 loc) · 1.78 KB
/
tests.yml
File metadata and controls
67 lines (66 loc) · 1.78 KB
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
63
64
65
66
67
---
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-13
- macos-15
- windows-2019
- windows-2022
steps:
- name: Set up `tmpfs` (if supported)
run: sudo mount tmpfs -t tmpfs -o size=100m /tmp
if: runner.os == 'Linux'
- name: Checkout repository
uses: actions/checkout@v4
- name: Configure CMake
run: cmake -B build -DCMAKE_COMPILE_WARNING_AS_ERROR=ON
- name: Build tests
run: cmake --build build
- name: Run tests
run: ctest --output-on-failure --test-dir build
test-meson:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-13
- macos-15
- ubuntu-20.04
- ubuntu-24.04
- windows-2019
- windows-2022
steps:
- name: Set up `tmpfs` (if supported)
run: sudo mount tmpfs -t tmpfs -o size=100m /tmp
if: runner.os == 'Linux'
- name: Install Meson (Linux native)
run: sudo apt-get install meson
if: runner.os == 'Linux'
- name: Install Meson (Brew)
run: brew install meson
if: runner.os == 'macOS'
- name: Install Meson (Pip)
run: pip install meson ninja
if: runner.os == 'Windows'
- name: Checkout repository
uses: actions/checkout@v4
- name: Configure Meson (Unix)
run: meson setup build
if: runner.os != 'Windows'
- name: Configure Meson (Windows)
run: meson setup build -Dvsenv=true
if: runner.os == 'Windows'
- name: Run tests
run: meson test -C build