LADI
/
spa
1
Fork 0

ci: add a job to build with the minimum required meson version

We can't build the session managers though, both require higher meson
versions than us.
This commit is contained in:
Peter Hutterer 2021-10-26 13:31:05 +10:00 committed by Wim Taymans
parent cc38f8cc79
commit cd3bd825c1
1 changed files with 16 additions and 0 deletions

View File

@ -262,6 +262,22 @@ build_meson_prerelease:
MESON_OPTIONS: "-Dsession-managers=wireplumber,media-session"
allow_failure: true
build_meson_exact_release:
extends:
- .build_on_fedora
script:
- meson_version=$(head -n 5 meson.build | grep 'meson_version' | sed -e 's/.*\([0-9]\+\.[0-9]\+\.[0-9]\+\).*/\1/')
- echo "Requiring meson version $meson_version"
- test -n "$meson_version" || (echo "Meson version parser failed" && exit 1)
- pip3 uninstall --yes meson
- pip3 install "meson==$meson_version"
- echo "Building with meson options $MESON_OPTIONS"
- meson "$BUILD_DIR" . --prefix="$PREFIX" $MESON_OPTIONS
- ninja -C "$BUILD_DIR"
- ninja -C "$BUILD_DIR" install
variables:
MESON_OPTIONS: "-Dsession-managers=[]"
valgrind:
extends:
- .build_on_fedora