cage/.builds/archlinux.yml

31 lines
957 B
YAML

image: archlinux
packages:
- clang
- meson
- libinput
- libxkbcommon
- wayland
- wayland-protocols
- xorg-server-xwayland
sources:
- https://github.com/swaywm/wlroots
- https://github.com/Hjdskes/cage
tasks:
# Install wlroots, which is required by Cage. Note that we compile a tagged
# version, instead of master, to avoid any breaking changes in wlroots.
- wlroots: |
cd wlroots
# We'd like to build against the latest release (0.6.0), but that doesn't compile
# against libinput 1.14. This commit introduces support for that version.
git checkout 94f65e354d09ded037e6ba724dc3eeed6d63778f
meson --prefix=/usr build -Drootston=false -Dexamples=false
ninja -C build
sudo ninja -C build install
- build: |
cd cage
meson build -Dxwayland=true
ninja -C build
- scan-build: |
cd cage
CC=clang meson build -Dxwayland=true
CC=clang ninja -C build scan-build