CI: change FreeBSD CI runner to cross-platform-actions.

This commit is contained in:
Ozkan Sezer 2023-10-26 01:03:50 +03:00
parent 1db0bd3fc0
commit b29128994e

View file

@ -1,20 +1,23 @@
name: Build (VM Actions) name: Build (C/P Actions)
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
freebsd: freebsd:
runs-on: macos-12 runs-on: ubuntu-latest
name: FreeBSD name: FreeBSD
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Build - name: Build
uses: vmactions/freebsd-vm@v0 uses: cross-platform-actions/action@v0.19.1
with: with:
usesh: true operating_system: freebsd
prepare: | version: '13.2'
pkg install -y \ shell: bash
run: |
sudo pkg update
sudo pkg install -y \
gmake \ gmake \
pkgconf \ pkgconf \
libXcursor \ libXcursor \
@ -34,17 +37,15 @@ jobs:
libinotify \ libinotify \
alsa-lib \ alsa-lib \
jackit \ jackit \
nas \
pipewire \ pipewire \
pulseaudio \ pulseaudio \
sndio \ sndio \
dbus \ dbus \
zh-fcitx \ zh-fcitx \
ibus \ ibus \
libsamplerate \
libudev-devd libudev-devd
run: |
mkdir build_autotools mkdir build_autotools
(cd build_autotools && CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" ../configure) 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 gmake -C build_autotools -j`sysctl -n hw.ncpu` V=1