mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
ci: make Meson warnings fatal
New warnings can be hard to notice in CI, since CI will just pass in that case. Meson sometimes uses warnings for important mistakes, e.g. invalid option. Let's turn warnings into errors so that we can spot these more easily.
This commit is contained in:
parent
787842c459
commit
f6ae028e99
3 changed files with 4 additions and 4 deletions
|
@ -19,7 +19,7 @@ sources:
|
||||||
tasks:
|
tasks:
|
||||||
- setup: |
|
- setup: |
|
||||||
cd wlroots
|
cd wlroots
|
||||||
meson build --default-library=both -Dauto_features=enabled -Dxcb-errors=disabled
|
meson build --fatal-meson-warnings --default-library=both -Dauto_features=enabled -Dxcb-errors=disabled
|
||||||
- build: |
|
- build: |
|
||||||
cd wlroots
|
cd wlroots
|
||||||
ninja -C build
|
ninja -C build
|
||||||
|
|
|
@ -20,8 +20,8 @@ sources:
|
||||||
tasks:
|
tasks:
|
||||||
- setup: |
|
- setup: |
|
||||||
cd wlroots
|
cd wlroots
|
||||||
CC=gcc meson build-gcc --default-library=both -Dauto_features=enabled --prefix /usr
|
CC=gcc meson build-gcc --fatal-meson-warnings --default-library=both -Dauto_features=enabled --prefix /usr
|
||||||
CC=clang meson build-clang -Dauto_features=enabled
|
CC=clang meson build-clang --fatal-meson-warnings -Dauto_features=enabled
|
||||||
- gcc: |
|
- gcc: |
|
||||||
cd wlroots/build-gcc
|
cd wlroots/build-gcc
|
||||||
ninja
|
ninja
|
||||||
|
|
|
@ -27,7 +27,7 @@ sources:
|
||||||
tasks:
|
tasks:
|
||||||
- wlroots: |
|
- wlroots: |
|
||||||
cd wlroots
|
cd wlroots
|
||||||
meson build -Dauto_features=enabled
|
meson build --fatal-meson-warnings -Dauto_features=enabled
|
||||||
ninja -C build
|
ninja -C build
|
||||||
sudo ninja -C build install
|
sudo ninja -C build install
|
||||||
- tinywl: |
|
- tinywl: |
|
||||||
|
|
Loading…
Reference in a new issue