Skip to content

Commit 074884c

Browse files
Add meson CI workflow
1 parent 8450e50 commit 074884c

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/meson.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Meson Continuous Integrations
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build-and-test:
11+
strategy:
12+
matrix:
13+
cpp_compiler: [g++, clang++]
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Install Meson and Boost.Test
21+
run: sudo apt-get --quiet --yes install libboost-test-dev meson
22+
23+
- name: Setup
24+
env:
25+
CXX: ${{ matrix.cpp_compiler }}
26+
run: meson setup build -Dcpp_std=c++17 -Dwerror=true -Dwarning_level=everything
27+
28+
- name: Compile
29+
run: meson compile -C build
30+
31+
- name: Test
32+
run: meson test -C build

0 commit comments

Comments
 (0)