CI: change FreeBSD CI runner to cross-platform-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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
diff --git a/.github/workflows/cpactions.yml b/.github/workflows/cpactions.yml
new file mode 100644
index 0000000..9b3a905
--- /dev/null
+++ b/.github/workflows/cpactions.yml
@@ -0,0 +1,51 @@
+name: Build (C/P Actions)
+
+on: [push, pull_request]
+
+jobs:
+ freebsd:
+ runs-on: ubuntu-latest
+ name: FreeBSD
+ timeout-minutes: 30
+ steps:
+ - uses: actions/checkout@v3
+ - name: Build
+ uses: cross-platform-actions/action@v0.19.1
+ with:
+ operating_system: freebsd
+ version: '13.2'
+ shell: bash
+ run: |
+ sudo pkg update
+ sudo 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 \
+ pipewire \
+ pulseaudio \
+ sndio \
+ dbus \
+ zh-fcitx \
+ ibus \
+ libudev-devd
+ mkdir build_autotools
+ export CPPFLAGS="-I/usr/local/include"
+ export LDFLAGS="-L/usr/local/lib"
+ (cd build_autotools && ../configure --disable-static)
+ gmake -C build_autotools -j`sysctl -n hw.ncpu` V=1
diff --git a/.github/workflows/vmactions.yml b/.github/workflows/vmactions.yml
deleted file mode 100644
index 50eb5e8..0000000
--- a/.github/workflows/vmactions.yml
+++ /dev/null
@@ -1,50 +0,0 @@
-name: Build (VM Actions)
-
-on: [push, pull_request]
-
-jobs:
- freebsd:
- runs-on: macos-12
- name: FreeBSD
- timeout-minutes: 30
- steps:
- - uses: actions/checkout@v3
- - 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