ci: add OpenBSD

This commit is contained in:
LaserEyess authored and sfan5 committed 2024-02-25 14:29:18 +01:00
1 parent 914e56d845
commit a0447a370e
2 files changed
+62

No files matched your search

+41
View File
@@ -205,6 +205,47 @@ jobs:
run: |
cat ./build/meson-logs/testlog.txt
openbsd:
runs-on: ubuntu-latest # until https://github.com/actions/runner/issues/385
timeout-minutes: 30 # avoid any weirdness with the VM
steps:
- uses: actions/checkout@v4
- name: Test in OpenBSD VM
uses: cross-platform-actions/[email protected]
with:
operating_system: openbsd
version: '7.4'
run: |
sudo pkg_add -U \
cmake \
ffmpeg \
git \
libarchive \
libbluray \
libcaca \
libcdio-paranoia \
libdvdnav \
libiconv \
libv4l \
libxkbcommon \
luajit \
meson \
openal \
pkgconf \
pulseaudio \
python3 \
rubberband \
sdl2 \
shaderc \
spirv-cross \
spirv-headers \
uchardet \
vulkan-loader \
vulkan-headers \
zimg
./ci/build-openbsd.sh
meson test -C build
freebsd:
runs-on: ubuntu-latest # until https://github.com/actions/runner/issues/385
timeout-minutes: 30 # avoid any weirdness with the VM
+21
View File
@@ -0,0 +1,21 @@
#!/bin/sh
set -e
# libplacebo on openBSD is too old; use a subproject
rm -rf subprojects
mkdir -p subprojects
git clone https://code.videolan.org/videolan/libplacebo.git \
--depth 1 --recurse-submodules subprojects/libplacebo
meson setup build \
-Dlibmpv=true \
-Dlua=enabled \
-Dopenal=enabled \
-Dpulse=enabled \
-Dtests=true \
-Dvulkan=enabled \
-Ddvdnav=enabled \
-Dcdda=enabled
meson compile -C build
./build/mpv -v --no-config