-
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (54 loc) · 1.33 KB
/
ci.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
name: CI
on:
pull_request:
branches:
- main
paths:
- 'include/**'
- 'src/**'
- 'tests/**'
- 'subprojects/**'
- 'meson.build'
- 'meson_options.txt'
- '.github/workflows/ci.yml'
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- run: pip3 install cpplint codespell
- run: |
cpplint --recursive --quiet .
codespell
test:
name: test-${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-2022, ubuntu-20.04, macos-14]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install Meson for Windows
if: runner.os == 'Windows'
run: pip install meson
- name: Install Meson for Unix
if: runner.os != 'Windows'
run: pip3 install meson ninja
- name: Prepare MSVC
if: runner.os == 'Windows'
uses: bus1/cabuild/action/msdevshell@v1
with:
architecture: x64
- name: Build and Run Tests
run: |
meson setup build
meson compile -C build
meson test -C build -v