From 1271a098e60aa1f2d2dff765fdc226336a2746af Mon Sep 17 00:00:00 2001 From: b-aaz <85005689+b-aaz@users.noreply.github.com> Date: Sun, 14 Sep 2025 21:33:00 +0000 Subject: [PATCH] .github: Added DragonFlyBSD to CI. Added DragonFlyBSD to CI, based on the FreeBSD build. Signed-off-by: b-aaz --- .github/scripts/DragonFlyBSD/install-pkg.sh | 28 +++++++++++++++++++ .../scripts/DragonFlyBSD/run-xserver-build.sh | 18 ++++++++++++ .github/workflows/build-xserver.yml | 15 ++++++++++ 3 files changed, 61 insertions(+) create mode 100755 .github/scripts/DragonFlyBSD/install-pkg.sh create mode 100755 .github/scripts/DragonFlyBSD/run-xserver-build.sh diff --git a/.github/scripts/DragonFlyBSD/install-pkg.sh b/.github/scripts/DragonFlyBSD/install-pkg.sh new file mode 100755 index 0000000000..9ffc03d9c8 --- /dev/null +++ b/.github/scripts/DragonFlyBSD/install-pkg.sh @@ -0,0 +1,28 @@ +#!/bin/sh + +set -e + +echo "--> install extra dependencies" +pkg install -y \ + curl \ + libdrm \ + libepoll-shim \ + libX11 \ + libxkbfile \ + libxshmfence \ + libXfont2 \ + libxcvt \ + libglvnd \ + libepoxy \ + libudev-devd \ + mesa-dri \ + mesa-libs \ + meson \ + pixman \ + pkgconf \ + xcb-util-image \ + xcb-util-keysyms \ + xcb-util-renderutil \ + xcb-util-wm \ + xkbcomp \ + xorgproto diff --git a/.github/scripts/DragonFlyBSD/run-xserver-build.sh b/.github/scripts/DragonFlyBSD/run-xserver-build.sh new file mode 100755 index 0000000000..ab9815912f --- /dev/null +++ b/.github/scripts/DragonFlyBSD/run-xserver-build.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +set -e + +./.github/scripts/DragonFlyBSD/install-pkg.sh + +echo "--> running xserver build ...." +export MESON_BUILDDIR=_build + +rm -rf "$MESON_BUILDDIR" +meson setup "$MESON_BUILDDIR" $MESON_ARGS +meson configure "$MESON_BUILDDIR" +meson compile -v -C "$MESON_BUILDDIR" $jobcount $ninja_args +# tests not working yet +# meson test -C "$MESON_BUILDDIR" --print-errorlogs $MESON_TEST_ARGS +meson install --no-rebuild -C "$MESON_BUILDDIR" $MESON_INSTALL_ARGS +# making trouble w/ git tree copied into the VM +# meson dist -C "$MESON_BUILDDIR" $MESON_DIST_ARGS diff --git a/.github/workflows/build-xserver.yml b/.github/workflows/build-xserver.yml index 02543c8469..8c5f262482 100644 --- a/.github/workflows/build-xserver.yml +++ b/.github/workflows/build-xserver.yml @@ -247,6 +247,20 @@ jobs: usesh: true release: "14.3" run: ./.github/scripts/freebsd/run-xserver-build.sh + xserver-build-dragonflybsd: + runs-on: ubuntu-latest + env: + MESON_ARGS: -Dxephyr=true -Dxorg=true -Dxvfb=true -Dxnest=true + steps: + - uses: actions/checkout@v4 + - name: run in DragonFlyBSD VM + id: xserver-build + uses: vmactions/dragonflybsd-vm@v1 + with: + envs: 'MESON_ARGS' + usesh: true + release: "6.4.2" + run: ./.github/scripts/DragonFlyBSD/run-xserver-build.sh release: name: Release pushed tag @@ -258,6 +272,7 @@ jobs: - xserver-build-mingw32-ubuntu - xserver-build-macos - xserver-build-freebsd + - xserver-build-dragonflybsd steps: - name: Checkout uses: actions/checkout@v4