From adb3e1a21d381cc1e62a12ae41cc7e5585c72a92 Mon Sep 17 00:00:00 2001
From: Cameron Cawley <[EMAIL REDACTED]>
Date: Sat, 30 Jul 2022 13:35:38 +0100
Subject: [PATCH] Add FreeBSD builds to GitHub Actions
---
.github/workflows/vmactions.yml | 49 +++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
create mode 100644 .github/workflows/vmactions.yml
diff --git a/.github/workflows/vmactions.yml b/.github/workflows/vmactions.yml
new file mode 100644
index 00000000000..414b056f84b
--- /dev/null
+++ b/.github/workflows/vmactions.yml
@@ -0,0 +1,49 @@
+name: Build (VM Actions)
+
+on: [push, pull_request]
+
+jobs:
+ freebsd:
+ runs-on: macos-12
+ name: FreeBSD
+ steps:
+ - uses: actions/checkout@v2
+ - name: Build
+ uses: vmactions/freebsd-vm@v0
+ with:
+ usesh: true
+ prepare: |
+ pkg install -y \
+ gmake \
+ pkgconf \
+ libXcursor \
+ libXext \
+ libXinerama \
+ libXi \
+ libXfixes \
+ libXrandr \
+ libXScrnSaver \
+ libXxf86vm \
+ wayland \
+ wayland-protocols \
+ libxkbcommon \
+ mesa-libs \
+ libglvnd \
+ evdev-proto \
+ libinotify \
+ alsa-lib \
+ jackit \
+ nas \
+ pipewire \
+ pulseaudio \
+ sndio \
+ dbus \
+ zh-fcitx \
+ ibus \
+ libsamplerate \
+ libudev-devd
+
+ run: |
+ mkdir build_autotools
+ (cd build_autotools && CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" ../configure)
+ gmake -C build_autotools -j`sysctl -n hw.ncpu` V=1