.github: Added DragonFlyBSD to CI.

Added DragonFlyBSD to CI, based on the FreeBSD build.

Signed-off-by: b-aaz <b-aazbsd@proton.me>
This commit is contained in:
b-aaz
2025-09-14 21:33:00 +00:00
committed by Enrico Weigelt
parent 5d9cfd981e
commit 1271a098e6
3 changed files with 61 additions and 0 deletions

28
.github/scripts/DragonFlyBSD/install-pkg.sh vendored Executable file
View File

@@ -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

View File

@@ -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

View File

@@ -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