Add FreeBSD builds to GitHub Actions
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
diff --git a/.github/workflows/vmactions.yml b/.github/workflows/vmactions.yml
new file mode 100644
index 0000000..414b056
--- /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