freebsd.yml (1205B)
1 image: freebsd/latest 2 packages: 3 - devel/libepoll-shim 4 - devel/meson 5 - devel/pkgconf 6 - gmake 7 - graphics/wayland-protocols 8 - security/ca_root_nss 9 - textproc/libxml2 10 - wget 11 sources: 12 - https://codeberg.org/ifreund/zig-wayland 13 - https://gitlab.freedesktop.org/wayland/wayland.git 14 tasks: 15 - install_deps: | 16 cd wayland 17 git checkout 1.22.0 18 meson setup build -Ddocumentation=false -Dtests=false --prefix /usr 19 sudo ninja -C build install 20 cd .. 21 22 # Eat Github's resources rather than the Zig Software Foundation's resources! 23 wget -nv https://github.com/ifreund/zig-tarball-mirror/releases/download/0.14.0/zig-freebsd-x86_64-0.14.0-unofficial.tar.xz 24 tar xf zig-freebsd-x86_64-0.14.0-unofficial.tar.xz 25 sudo mv zig-freebsd-x86_64-0.14.0-unofficial/zig /usr/bin/ 26 sudo mv zig-freebsd-x86_64-0.14.0-unofficial/lib /usr/lib/zig 27 - build: | 28 cd zig-wayland 29 zig build -Denable-tests --summary all 30 - hello: | 31 cd zig-wayland/example/hello 32 zig build --summary all 33 - fmt: | 34 cd zig-wayland 35 zig fmt --check build.zig 36 zig fmt --check build.zig.zon 37 zig fmt --check src/ 38 zig fmt --check example/