Skip to content

Commit f2e8f2b

Browse files
committed
CI: add basic Meson testing
I've tried to be a bit more minimal here than the CMake tests are, since there's already a good cross section of testing there. For Meson, I just want to touch test each of the major platforms to ensure that it works
1 parent ef3cf08 commit f2e8f2b

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/meson.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Meson
2+
3+
on:
4+
push:
5+
branches: [ master, main ]
6+
pull_request:
7+
branches: [ master, main ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build-ubuntu:
12+
name: Build and Test on Ubuntu
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v6
16+
- uses: actions/setup-python@v5
17+
- uses: BSFishy/meson-build@v1.0.3
18+
with:
19+
action: test
20+
meson-version: 0.64.1
21+
22+
build-macos:
23+
name: Build and Test on MacOS
24+
runs-on: macos-latest
25+
steps:
26+
- uses: actions/checkout@v6
27+
- uses: actions/setup-python@v5
28+
- uses: BSFishy/meson-build@v1.0.3
29+
with:
30+
action: test
31+
meson-version: 1.10.0 # 0.64.1 doesn't work with latest MacOS
32+
33+
build-windows:
34+
name: Build and Test on Windows
35+
runs-on: windows-latest
36+
steps:
37+
- uses: ilammy/msvc-dev-cmd@v1
38+
- uses: actions/checkout@v6
39+
- uses: actions/setup-python@v5
40+
- uses: BSFishy/meson-build@v1.0.3
41+
with:
42+
action: test
43+
setup-options: -Dcpp_std=c++14 # MSVC doesn't actually support C++11, hide the warning
44+
meson-version: 0.64.1

0 commit comments

Comments
 (0)