github/workflows: use cross-platform-actions for freebsd

Since vmactions is basically a bootlooping disaster* with no signs of
life from upstream, let's try a different action instead and hope it
works better. We don't need to force the latest release channel, so
delete that part. Also make the pkg install just one command for
simplicity.

*: https://github.com/vmactions/freebsd-vm/issues/74
This commit is contained in:
Dudemanguy 2023-10-23 10:48:47 -05:00
parent 7d63b81cf1
commit 71a497deee
1 changed files with 26 additions and 36 deletions

View File

@ -172,62 +172,52 @@ jobs:
freebsd:
runs-on: macos-12 # until https://github.com/actions/runner/issues/385
timeout-minutes: 20 # randomly bootloops https://github.com/vmactions/freebsd-vm/issues/74
timeout-minutes: 20 # avoid any weirdness with the VM
steps:
- uses: actions/checkout@v3
- name: Test in FreeBSD VM
uses: vmactions/freebsd-vm@v0
uses: cross-platform-actions/action@v0.19.1
with:
mem: 8192
copyback: false
usesh: true
prepare: |
# Update to latest release channel
mkdir -p /usr/local/etc/pkg/repos
echo "FreeBSD: { url: "pkg+http://pkg.freebsd.org/\${ABI}/latest" }" \
> /usr/local/etc/pkg/repos/FreeBSD.conf
pkg update
# Requested in ci/build-freebsd.sh
pkg install -y \
git \
operating_system: freebsd
version: '13.2'
run: |
sudo pkg update
sudo pkg install -y \
alsa-lib \
cmake \
evdev-proto \
ffmpeg \
libplacebo \
libxkbcommon \
libXinerama \
libxpresent \
luajit \
meson \
openal-soft \
pkgconf \
python3 \
sdl2 \
sndio \
vulkan-headers \
wayland-protocols \
#
# Optionally auto-enabled
pkg install -y \
alsa-lib \
git \
iconv \
jackit \
libXv \
libarchive \
libbluray \
libcaca \
libcdio-paranoia \
libdvdnav \
libplacebo \
libXinerama \
libxkbcommon \
libxpresent \
libXv \
luajit \
meson \
mujs \
openal-soft \
pipewire \
pkgconf \
pulseaudio \
python3 \
rubberband \
sekrit-twc-zimg \
sdl2 \
sndio \
uchardet \
v4l_compat \
#
run: |
./ci/build-freebsd.sh
meson test -C build
vulkan-headers \
wayland-protocols
./ci/build-freebsd.sh
meson test -C build
msys2:
runs-on: windows-latest