image: alpine/edge packages: - meson - linux-headers - clang - clang-extra-tools - clang-analyzer - scdoc sources: - https://git.sr.ht/~kennylevinsen/seatd tasks: - prepare: | meson -Dlibseat-seatd=enabled -Dlibseat-builtin=enabled -Dlibseat-logind=disabled -Dexamples=enabled build seatd - build: | ninja -C build - unittest: | ninja -C build test - scan-build: | ninja -C build scan-build [ -z "$(ls -A build/meson-logs/scanbuild/ 2>/dev/null)" ] - smoketest: | timeout -s KILL 30s ./seatd/.builds/smoketest-seatd.sh - smoketest-builtin: | timeout -s KILL 30s ./seatd/.builds/smoketest-builtin.sh - check-format: | ninja -C build clang-format git -C seatd diff --exit-code