Skip to content

Commit

Permalink
github/workflows: use cross-platform-actions for freebsd
Browse files Browse the repository at this point in the history
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.

*: vmactions/freebsd-vm#74
  • Loading branch information
Dudemanguy committed Oct 23, 2023
1 parent 7d63b81 commit e3f1763
Showing 1 changed file with 26 additions and 36 deletions.
62 changes: 26 additions & 36 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e3f1763

Please sign in to comment.