diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-10-17 02:12:12 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-10-17 02:12:12 +0900 |
| commit | 7c7353170d631ab0d6353a688fa94bb2a8e9cc8d (patch) | |
| tree | 755be0a976c6ac8235a1cc40fec9e7b84cb36cc9 | |
| parent | e0c3d657f7b839e8c4fa0f2f61c83c3ad238d561 (diff) | |
internal/workflows: build sway 1.12
This has better support for security-context metadata which can be
measured by the test suite.
Signed-off-by: Ophestra <cat@gensokyo.uk>
| -rw-r--r-- | internal/workflows/Containerfile | 77 |
1 files changed, 63 insertions, 14 deletions
diff --git a/internal/workflows/Containerfile b/internal/workflows/Containerfile index 14bd5c2e..eb858831 100644 --- a/internal/workflows/Containerfile +++ b/internal/workflows/Containerfile @@ -19,23 +19,72 @@ RUN add-apt-repository -y ppa:savoury1/pipewire && \ fsmark && \ apt-get clean && rm -rf /var/lib/apt/lists/* -RUN VERSION='0.5.14' && \ +RUN PACKAGES=" \ + build-essential \ + ninja-build \ + bison \ + libxcb-composite0-dev \ + libxcb-ewmh-dev \ + libxcb-icccm4-dev \ + libxcb-res0-dev \ + libjson-c-dev \ + libpango1.0-dev \ + libevdev-dev \ + libudev-dev \ + libpipewire-0.3-dev" && \ + apt-get update && apt-get install -y $PACKAGES && \ + VERSION="1.12.1" && \ + curl -L "https://github.com/mesonbuild/meson/releases/download/$VERSION/meson-$VERSION.tar.gz" | \ + tar -C /tmp -zx && \ + MESON_DIR="/tmp/meson-$VERSION" && \ + MESON="$MESON_DIR/meson.py" && \ + VERSION="0.20.2" && \ + curl "https://gitlab.freedesktop.org/wlroots/wlroots/-/archive/$VERSION/wlroots-${VERSION}.tar.bz2?ref_type=tags" | \ + tar -C /tmp -jx && \ + "$MESON" setup \ + --wrap-mode=default \ + -Dprefix=/usr \ + -Dbuildtype=release \ + -Dc_args='-w' \ + -Dxwayland=enabled \ + "/tmp/wlroots-$VERSION" build && \ + "$MESON" compile -C build && \ + "$MESON" install -C build && \ + rm -rf build "/tmp/wlroots-$VERSION" && \ + VERSION="1.32.0" && \ + curl "https://gitlab.freedesktop.org/libinput/libinput/-/archive/$VERSION/libinput-$VERSION.tar.bz2?ref_type=tags" | \ + tar -C /tmp -jx && \ + "$MESON" setup \ + -Dprefix=/usr \ + -Dbuildtype=release \ + -Dmtdev=false \ + -Dlibwacom=false \ + -Ddebug-gui=false \ + "/tmp/libinput-$VERSION" build && \ + "$MESON" compile -C build && \ + "$MESON" install -C build && \ + rm -rf build "/tmp/libinput-$VERSION" && \ + VERSION="1.12" && \ + curl -L "https://github.com/swaywm/sway/releases/download/$VERSION/sway-$VERSION.tar.gz" | \ + tar -C /tmp -zx && \ + "$MESON" setup \ + -Dprefix=/usr \ + -Dbuildtype=release \ + "/tmp/sway-$VERSION" build && \ + "$MESON" compile -C build && \ + "$MESON" install -C build && \ + rm -rf build "/tmp/sway-$VERSION" && \ + VERSION='0.5.14' && \ curl "https://gitlab.freedesktop.org/pipewire/wireplumber/-/archive/${VERSION}/wireplumber-${VERSION}.tar.bz2" | \ tar -C /tmp -jx && \ - apt-get update && apt-get install -y \ - build-essential \ - meson \ - libpipewire-0.3-dev && \ - meson setup \ + "$MESON" setup \ -Dprefix=/usr \ -Dbuildtype=release \ - "/tmp/wireplumber-${VERSION}" build && \ - meson compile -C build && \ - meson install -C build && \ + "/tmp/wireplumber-${VERSION}" build && \ + "$MESON" compile -C build && \ + "$MESON" install -C build && \ rm -rf build "/tmp/wireplumber-${VERSION}" && \ - apt-get remove -y \ - build-essential \ - meson \ - libpipewire-0.3-dev && \ + apt-get remove -y $PACKAGES && \ apt-get autoremove -y && \ - apt-get clean && rm -rf /var/lib/apt/lists/* + apt-get clean && rm -rf /var/lib/apt/lists/* && \ + rm -rf "$MESON_DIR" |
