Skip to content

Commit ef6bbfc

Browse files
committed
ci: add meson checks
1 parent a24cf50 commit ef6bbfc

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/meson.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Meson Checks CI
2+
3+
on:
4+
push:
5+
branches: ['main']
6+
pull_request:
7+
workflow_dispatch:
8+
9+
jobs:
10+
meson_format:
11+
name: Run Meson Format Checks
12+
runs-on: ubuntu-24.04
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
fetch-depth: '0'
17+
18+
# NOTE: meson has no dependencies, so --break-system-packages doesn't really break anything!
19+
- name: Setup meson
20+
run: |
21+
pip install meson --break-system-packages
22+
23+
- name: Check Files
24+
run: git ls-files --exclude='meson.build' --exclude='meson.options' --exclude='meson_options.txt' --exclude='*.wrap' --ignored -c -z | xargs -0r meson format -i -c ./meson.format
25+
26+
## TODO: use mesonlint from
27+
## https://github.com/JCWasmx86/mesonlsp
28+
## once it is maitained again
29+
# meson_lint:
30+
# name: Run Meson Lint Checks

0 commit comments

Comments
 (0)