Skip to content

Commit 966e1e7

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 fda84fb commit 966e1e7

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/meson.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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@v3
16+
- uses: actions/setup-python@v5
17+
- uses: BSFishy/[email protected]
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-12
25+
steps:
26+
- uses: actions/checkout@v3
27+
- uses: actions/setup-python@v5
28+
- uses: BSFishy/[email protected]
29+
with:
30+
action: test
31+
meson-version: 0.64.1
32+
33+
build-windows:
34+
name: Build and Test on Windows
35+
runs-on: windows-latest
36+
env:
37+
CXX: clang-cl
38+
steps:
39+
- uses: ilammy/msvc-dev-cmd@v1
40+
- uses: actions/checkout@v3
41+
- uses: actions/setup-python@v5
42+
- uses: BSFishy/[email protected]
43+
with:
44+
action: test
45+
setup-options: -Dcpp_std=c++14 # Clang-CL doesn't actually support C++11, hide the warning
46+
meson-version: 0.64.1

0 commit comments

Comments
 (0)