.github: add FreeBSD build

Add building the Xserver in a FreeBSD 14.3 VM.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-08-01 12:31:06 +02:00
committed by Enrico Weigelt
parent a1bafe0a06
commit dc4ea884b3
3 changed files with 63 additions and 0 deletions

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

@@ -0,0 +1,28 @@
#!/bin/sh
set -e
echo "--> install extra dependencies"
pkg install -y \
curl \
git \
libdrm \
libepoll-shim \
libX11 \
libxkbfile \
libxshmfence \
libXfont2 \
libxcvt \
libglvnd \
libepoxy \
mesa-dri \
mesa-libs \
meson \
pixman \
pkgconf \
xcb-util-image \
xcb-util-keysyms \
xcb-util-renderutil \
xcb-util-wm \
xkbcomp \
xorgproto

18
.github/scripts/freebsd/run-xserver-build.sh vendored Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/sh
set -e
./.github/scripts/freebsd/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

@@ -225,6 +225,23 @@ jobs:
- name: manpage check
run: .gitlab-ci/manpages-check
xserver-build-freebsd:
runs-on: ubuntu-latest
env:
MYTOKEN : ${{ secrets.MYTOKEN }}
MYTOKEN2: "value2"
MESON_ARGS: -Dc_args="-fno-common" -Dprefix=/usr -Dxephyr=true -Dwerror=false -Dxcsecurity=true -Dxorg=true -Dxvfb=true -Dxnest=true
steps:
- uses: actions/checkout@v4
- name: run in freebsd VM
id: xserver-build
uses: vmactions/freebsd-vm@v1
with:
envs: 'MYTOKEN MYTOKEN2 MESON_ARGS'
usesh: true
release: "14.3"
run: ./.github/scripts/freebsd/run-xserver-build.sh
release:
name: Release pushed tag
runs-on: ubuntu-latest