2020-11-29 20:43:04 +00:00
|
|
|
name: freebsd
|
|
|
|
|
|
|
|
on: [ push, pull_request ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
clang:
|
2022-07-29 19:59:50 +00:00
|
|
|
# Run actions in a FreeBSD VM on the macos-12 runner
|
2021-11-20 04:35:51 +00:00
|
|
|
# https://github.com/actions/runner/issues/385 - for FreeBSD runner support
|
|
|
|
# https://github.com/actions/virtual-environments/issues/4060 - for lack of VirtualBox on MacOS 11 runners
|
2022-07-29 19:59:50 +00:00
|
|
|
runs-on: macos-12
|
2020-11-29 20:43:04 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Test in FreeBSD VM
|
2022-07-29 19:59:50 +00:00
|
|
|
uses: vmactions/freebsd-vm@v0
|
2020-11-29 20:43:04 +00:00
|
|
|
with:
|
2021-11-24 03:48:31 +00:00
|
|
|
mem: 2048
|
2020-11-29 20:43:04 +00:00
|
|
|
usesh: true
|
|
|
|
prepare: |
|
|
|
|
export CPPFLAGS=-isystem/usr/local/include LDFLAGS=-L/usr/local/lib # sndio
|
|
|
|
sed -i '' 's/quarterly/latest/' /etc/pkg/FreeBSD.conf
|
|
|
|
pkg install -y git # subprojects/date
|
2021-09-14 07:02:38 +00:00
|
|
|
pkg install -y catch evdev-proto gtk-layer-shell gtkmm30 jsoncpp \
|
|
|
|
libdbusmenu libevdev libfmt libmpdclient libudev-devd meson \
|
2022-05-23 16:32:39 +00:00
|
|
|
pkgconf pulseaudio scdoc sndio spdlog wayland-protocols upower
|
2020-11-29 20:43:04 +00:00
|
|
|
run: |
|
|
|
|
meson build -Dman-pages=enabled
|
|
|
|
ninja -C build
|
2021-09-14 07:02:38 +00:00
|
|
|
meson test -C build --no-rebuild --print-errorlogs --suite waybar
|