2020-11-29 20:43:04 +00:00
|
|
|
name: freebsd
|
|
|
|
|
2023-10-25 16:35:58 +00:00
|
|
|
on: [push, pull_request]
|
2020-11-29 20:43:04 +00:00
|
|
|
|
2024-02-19 22:09:24 +00:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-freebsd-${{ github.event.pull_request.number || github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2020-11-29 20:43:04 +00:00
|
|
|
jobs:
|
|
|
|
clang:
|
2024-02-29 07:56:10 +00:00
|
|
|
# Run actions in a FreeBSD VM on the ubuntu runner
|
2021-11-20 04:35:51 +00:00
|
|
|
# https://github.com/actions/runner/issues/385 - for FreeBSD runner support
|
2024-02-29 07:56:10 +00:00
|
|
|
runs-on: ubuntu-latest
|
2020-11-29 20:43:04 +00:00
|
|
|
steps:
|
2023-10-25 16:35:58 +00:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Test in FreeBSD VM
|
2024-02-29 07:56:10 +00:00
|
|
|
uses: cross-platform-actions/action@v0.23.0
|
2023-10-26 20:17:20 +00:00
|
|
|
timeout-minutes: 180
|
2024-02-29 07:56:10 +00:00
|
|
|
env:
|
|
|
|
CPPFLAGS: '-isystem/usr/local/include'
|
|
|
|
LDFLAGS: '-L/usr/local/lib'
|
2023-10-25 16:35:58 +00:00
|
|
|
with:
|
|
|
|
operating_system: freebsd
|
|
|
|
version: "13.2"
|
2024-02-29 07:56:10 +00:00
|
|
|
environment_variables: CPPFLAGS LDFLAGS
|
|
|
|
sync_files: runner-to-vm
|
2023-10-25 16:35:58 +00:00
|
|
|
run: |
|
|
|
|
sudo sed -i '' 's/quarterly/latest/' /etc/pkg/FreeBSD.conf
|
|
|
|
sudo pkg install -y git # subprojects/date
|
|
|
|
sudo pkg install -y catch evdev-proto gtk-layer-shell gtkmm30 jsoncpp \
|
|
|
|
libdbusmenu libevdev libfmt libmpdclient libudev-devd meson \
|
2024-05-02 06:31:40 +00:00
|
|
|
pkgconf pipewire pulseaudio scdoc sndio spdlog wayland-protocols upower \
|
2023-10-25 16:35:58 +00:00
|
|
|
libinotify
|
|
|
|
meson build -Dman-pages=enabled
|
|
|
|
ninja -C build
|
|
|
|
meson test -C build --no-rebuild --print-errorlogs --suite waybar
|