mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
4154492603
Use latest action v0.1.5. Pin runner to macos-10.15. macos-latest will start using macos-11 images without VirtualBox in less than a month[1]. [1] https://github.com/actions/virtual-environments/issues/4060
28 lines
1.1 KiB
YAML
28 lines
1.1 KiB
YAML
name: freebsd
|
|
|
|
on: [ push, pull_request ]
|
|
|
|
jobs:
|
|
clang:
|
|
# Run actions in a FreeBSD vm on the macos-10.15 runner
|
|
# 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
|
|
runs-on: macos-10.15
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Test in FreeBSD VM
|
|
uses: vmactions/freebsd-vm@v0.1.5 # aka FreeBSD 13.0
|
|
with:
|
|
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
|
|
pkg install -y catch evdev-proto gtk-layer-shell gtkmm30 jsoncpp \
|
|
libdbusmenu libevdev libfmt libmpdclient libudev-devd meson \
|
|
pkgconf pulseaudio scdoc sndio spdlog
|
|
run: |
|
|
meson build -Dman-pages=enabled
|
|
ninja -C build
|
|
meson test -C build --no-rebuild --print-errorlogs --suite waybar
|