aboutsummaryrefslogtreecommitdiff
path: root/.builds
diff options
context:
space:
mode:
Diffstat (limited to '.builds')
-rw-r--r--.builds/alpine.yml38
-rw-r--r--.builds/archlinux.yml30
-rw-r--r--.builds/freebsd.yml53
3 files changed, 121 insertions, 0 deletions
diff --git a/.builds/alpine.yml b/.builds/alpine.yml
new file mode 100644
index 00000000..328625a5
--- /dev/null
+++ b/.builds/alpine.yml
@@ -0,0 +1,38 @@
+image: alpine/edge
+packages:
+ - cairo-dev
+ - eudev-dev
+ - gdk-pixbuf-dev
+ - json-c-dev
+ - libevdev-dev
+ - libinput-dev
+ - libxcb-dev
+ - libxkbcommon-dev
+ - mesa-dev
+ - meson
+ - pango-dev
+ - pixman-dev
+ - scdoc
+ - wayland-dev
+ - wayland-protocols
+ - xcb-util-image-dev
+ - xorg-server-xwayland
+sources:
+ - https://github.com/swaywm/sway
+ - https://github.com/swaywm/wlroots
+tasks:
+ - wlroots: |
+ cd wlroots
+ meson --prefix=/usr build -Drootston=false -Dexamples=false
+ ninja -C build
+ sudo ninja -C build install
+ - setup: |
+ cd sway
+ meson build
+ - build: |
+ cd sway
+ ninja -C build
+ - build-no-xwayland: |
+ cd sway
+ meson configure build -Dxwayland=disabled
+ ninja -C build
diff --git a/.builds/archlinux.yml b/.builds/archlinux.yml
new file mode 100644
index 00000000..c8f116e0
--- /dev/null
+++ b/.builds/archlinux.yml
@@ -0,0 +1,30 @@
+image: archlinux
+packages:
+ - cairo
+ - gdk-pixbuf2
+ - json-c
+ - libinput
+ - libxcb
+ - libxkbcommon
+ - meson
+ - pango
+ - scdoc
+ - wayland
+ - wayland-protocols
+ - xcb-util-image
+ - xorg-server-xwayland
+sources:
+ - https://github.com/swaywm/sway
+ - https://github.com/swaywm/wlroots
+tasks:
+ - wlroots: |
+ cd wlroots
+ meson --prefix=/usr build -Drootston=false -Dexamples=false
+ ninja -C build
+ sudo ninja -C build install
+ - setup: |
+ cd sway
+ meson build
+ - build: |
+ cd sway
+ ninja -C build
diff --git a/.builds/freebsd.yml b/.builds/freebsd.yml
new file mode 100644
index 00000000..8fa76025
--- /dev/null
+++ b/.builds/freebsd.yml
@@ -0,0 +1,53 @@
+image: freebsd/latest
+packages:
+- devel/json-c
+- devel/libevdev
+- devel/meson
+- devel/pkgconf
+- graphics/cairo
+- graphics/gdk-pixbuf2
+- graphics/wayland
+- graphics/wayland-protocols
+- textproc/scdoc
+- x11-toolkits/pango
+- x11/libxcb
+- x11/libxkbcommon
+# wlroots dependencies
+- devel/evdev-proto
+- devel/libepoll-shim
+- devel/libudev-devd
+- graphics/libdrm
+- graphics/mesa-libs
+- x11/libinput
+- x11/libX11
+- x11/pixman
+- x11/xcb-util-wm
+sources:
+- https://github.com/swaywm/sway
+- https://github.com/swaywm/wlroots
+tasks:
+- fixup_epoll: |
+ cat << 'EOF' | sudo tee /usr/local/libdata/pkgconfig/epoll-shim.pc
+ prefix=/usr/local
+ exec_prefix=\$\{\$prefix\}
+ libdir=${prefix}/lib
+ sharedlibdir=${prefix}/lib
+ includedir=${prefix}/include/libepoll-shim
+ Name: epoll-shim
+ Description: epoll shim implemented using kevent
+ Version: 0
+ Requires:
+ Libs: -L${libdir} -L${sharedlibdir} -lepoll-shim
+ Libs.private: -pthread -lrt
+ Cflags: -I${includedir}
+ EOF
+- setup: |
+ cd sway
+ mkdir subprojects
+ cd subprojects
+ ln -s ../../wlroots wlroots
+ cd ..
+ meson build
+- build: |
+ cd sway
+ ninja -C build