2022-07-30 06:35:38 -06:00
|
|
|
name: Build (VM Actions)
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
2022-12-04 10:06:06 -07:00
|
|
|
concurrency:
|
2022-12-04 11:02:22 -07:00
|
|
|
group: ${{ github.workflow }}-${{ github.event.issue.number || github.run_id }}
|
2022-12-04 10:06:06 -07:00
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-07-30 06:35:38 -06:00
|
|
|
jobs:
|
|
|
|
freebsd:
|
|
|
|
runs-on: macos-12
|
|
|
|
name: FreeBSD
|
|
|
|
steps:
|
2022-10-12 16:51:59 -06:00
|
|
|
- uses: actions/checkout@v3
|
2022-07-30 06:35:38 -06:00
|
|
|
- name: Build
|
|
|
|
uses: vmactions/freebsd-vm@v0
|
|
|
|
with:
|
|
|
|
usesh: true
|
|
|
|
prepare: |
|
|
|
|
pkg install -y \
|
2022-11-24 12:05:19 -07:00
|
|
|
cmake \
|
|
|
|
ninja \
|
2022-07-30 06:35:38 -06:00
|
|
|
pkgconf \
|
|
|
|
libXcursor \
|
|
|
|
libXext \
|
|
|
|
libXinerama \
|
|
|
|
libXi \
|
|
|
|
libXfixes \
|
|
|
|
libXrandr \
|
|
|
|
libXScrnSaver \
|
|
|
|
libXxf86vm \
|
|
|
|
wayland \
|
|
|
|
wayland-protocols \
|
|
|
|
libxkbcommon \
|
|
|
|
mesa-libs \
|
|
|
|
libglvnd \
|
|
|
|
evdev-proto \
|
|
|
|
libinotify \
|
|
|
|
alsa-lib \
|
2022-11-22 20:50:20 -07:00
|
|
|
jackit \
|
2022-07-30 06:35:38 -06:00
|
|
|
pipewire \
|
|
|
|
pulseaudio \
|
2022-11-22 20:50:20 -07:00
|
|
|
sndio \
|
2022-07-30 06:35:38 -06:00
|
|
|
dbus \
|
|
|
|
zh-fcitx \
|
|
|
|
ibus \
|
|
|
|
libsamplerate \
|
|
|
|
libudev-devd
|
|
|
|
|
|
|
|
run: |
|
2022-11-24 19:15:23 -07:00
|
|
|
cmake -S . -B build -GNinja \
|
2022-11-24 21:07:32 -07:00
|
|
|
-DSDL_CHECK_REQUIRED_INCLUDES="/usr/local/include" \
|
2022-11-24 20:52:52 -07:00
|
|
|
-DSDL_CHECK_REQUIRED_LINK_OPTIONS="-L/usr/local/lib"
|
2022-11-24 12:05:19 -07:00
|
|
|
cmake --build build --verbose -- -j`sysctl -n hw.ncpu`
|