-
Notifications
You must be signed in to change notification settings - Fork 18
62 lines (54 loc) · 1.59 KB
/
tests-meson.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: test meson wrapper
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
jobs:
run:
name: lib${{ matrix.library }} ${{ matrix.compiler }} ${{ matrix.os }} ${{ matrix.force_cpp }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
library: ["static", "shared"]
compiler: ["gcc", "clang", "cl", "clang-cl"]
force_cpp: [-Dforce-cpp=enabled, ""]
os: [windows-latest, ubuntu-latest, macos-latest]
exclude:
- os: windows-latest
compiler: "clang"
- os: windows-latest
compiler: "gcc"
- os: windows-latest
force_cpp: "-Dforce-cpp=enabled"
- os: ubuntu-latest
compiler: "cl"
- os: ubuntu-latest
compiler: "clang-cl"
- os: ubuntu-latest
compiler: "clang"
- os: macos-latest
compiler: "cl"
- os: macos-latest
compiler: "clang-cl"
- os: macos-latest
compiler: "gcc"
fail-fast: false
env:
CC: ${{matrix.compiler}}
CXX: ${{matrix.compiler}}
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: install dependencies
run: python -m pip install meson ninja
- name: Compile
run: |
meson setup builddir -Ddefault_library=${{matrix.library}} ${{matrix.force_cpp}}
meson compile -C builddir
- name: Test
run: |
meson test -C builddir --print-errorlogs -v