1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-03 21:42:18 +00:00
mpv/ci/build-tumbleweed.sh
Dudemanguy 31780a6db5 ci: add meson builds
Update the github workflows to also do meson builds for every OS.
Additionally, make every workflow execute the built mpv executable
(except for windows and FreeBSD's waf executable) to make sure that it
runs. As an aside, FreeBSD unfortunately is a bit less elegant since it
is in a VM.
2021-11-14 19:13:10 +00:00

31 lines
716 B
Bash
Executable File

#!/bin/sh
set -e
if [ "$1" = "meson" ]; then
meson build \
-Dcdda=enabled \
-Ddvbin=enabled \
-Ddvdnav=enabled \
-Dlibarchive=enabled \
-Dlibmpv=true \
-Dmanpage-build=enabled \
-Dshaderc=enabled \
-Dvulkan=enabled
meson compile -C build --verbose
./build/mpv
fi
if [ "$1" = "waf" ]; then
python3 ./waf configure \
--enable-cdda \
--enable-dvbin \
--enable-dvdnav \
--enable-libarchive \
--enable-libmpv-shared \
--enable-manpage-build \
--enable-shaderc \
--enable-vulkan
python3 ./waf build --verbose
./build/mpv
fi