gitlab-ci: disable building session managers

...except in the build_session_managers job.

This decouples pipewire's CI from wireplumber's dependencies
and potential failures. The build_session_managers job is supposed
to catch session manager integration errors, not any other job.
This commit is contained in:
George Kiagiadakis 2022-10-18 16:14:14 +03:00 committed by Wim Taymans
parent 33e8667cfc
commit 500a5a689e

View file

@ -224,6 +224,8 @@ build_on_ubuntu:
- .fdo.distribution-image@ubuntu - .fdo.distribution-image@ubuntu
- .build - .build
stage: build stage: build
variables:
MESON_OPTIONS: "-Dsession-managers=[]"
.build_on_fedora: .build_on_fedora:
extends: extends:
@ -249,6 +251,7 @@ build_on_fedora:
-Dvulkan=enabled -Dvulkan=enabled
-Dsdl2=enabled -Dsdl2=enabled
-Dsndfile=enabled -Dsndfile=enabled
-Dsession-managers=[]
artifacts: artifacts:
name: pipewire-$CI_COMMIT_SHA name: pipewire-$CI_COMMIT_SHA
when: always when: always
@ -263,6 +266,8 @@ build_on_alpine:
- .fdo.distribution-image@alpine - .fdo.distribution-image@alpine
- .build - .build
stage: build stage: build
variables:
MESON_OPTIONS: "-Dsession-managers=[]"
# build with all auto() options enabled # build with all auto() options enabled
build_all: build_all:
@ -271,7 +276,14 @@ build_all:
variables: variables:
# Fedora doesn't have libfreeaptx, lc3plus, lc3, or roc # Fedora doesn't have libfreeaptx, lc3plus, lc3, or roc
# libcamera has no stable API, so let's not chase that target # libcamera has no stable API, so let's not chase that target
MESON_OPTIONS: "-Dauto_features=enabled -Dbluez5-codec-aptx=disabled -Dbluez5-codec-lc3plus=disabled -Dbluez5-codec-lc3=disabled -Droc=disabled -Dlibcamera=disabled" MESON_OPTIONS: >-
-Dauto_features=enabled
-Dbluez5-codec-aptx=disabled
-Dbluez5-codec-lc3plus=disabled
-Dbluez5-codec-lc3=disabled
-Droc=disabled
-Dlibcamera=disabled
-Dsession-managers=[]
parallel: parallel:
matrix: matrix:
- CC: [gcc, clang] - CC: [gcc, clang]
@ -281,7 +293,7 @@ build_with_no_commandline_options:
extends: extends:
- .build_on_fedora - .build_on_fedora
variables: variables:
MESON_OPTIONS: "" MESON_OPTIONS: "-Dsession-managers=[]"
parallel: parallel:
matrix: matrix:
- CC: [gcc, clang] - CC: [gcc, clang]
@ -297,7 +309,7 @@ build_with_custom_options:
MESON_OPTION_VALUE: [enabled, disabled] MESON_OPTION_VALUE: [enabled, disabled]
script: script:
- echo "Building with -D$MESON_OPTION=$MESON_OPTION_VALUE" - echo "Building with -D$MESON_OPTION=$MESON_OPTION_VALUE"
- meson "$BUILD_DIR" . --prefix="$PREFIX" "-D$MESON_OPTION=$MESON_OPTION_VALUE" - meson "$BUILD_DIR" . --prefix="$PREFIX" "-D$MESON_OPTION=$MESON_OPTION_VALUE" -Dsession-managers=[]
- ninja $NINJA_ARGS -C "$BUILD_DIR" - ninja $NINJA_ARGS -C "$BUILD_DIR"
- ninja $NINJA_ARGS -C "$BUILD_DIR" test - ninja $NINJA_ARGS -C "$BUILD_DIR" test
@ -308,7 +320,7 @@ build_release:
extends: extends:
- .build_on_fedora - .build_on_fedora
variables: variables:
MESON_OPTIONS: "-Dtest=enabled -Dbuildtype=release -Db_ndebug=true" MESON_OPTIONS: "-Dtest=enabled -Dbuildtype=release -Db_ndebug=true -Dsession-managers=[]"
parallel: parallel:
matrix: matrix:
- CC: [gcc, clang] - CC: [gcc, clang]
@ -364,6 +376,8 @@ valgrind:
- echo "Building with meson options $MESON_OPTIONS" - echo "Building with meson options $MESON_OPTIONS"
- meson "$BUILD_DIR" . --prefix="$PREFIX" $MESON_OPTIONS - meson "$BUILD_DIR" . --prefix="$PREFIX" $MESON_OPTIONS
- meson test -C "$BUILD_DIR" --setup=valgrind - meson test -C "$BUILD_DIR" --setup=valgrind
variables:
MESON_OPTIONS: "-Dsession-managers=[]"
build_with_coverity: build_with_coverity:
extends: extends:
@ -384,6 +398,7 @@ build_with_coverity:
-Dvulkan=enabled -Dvulkan=enabled
-Dsdl2=enabled -Dsdl2=enabled
-Dsndfile=enabled -Dsndfile=enabled
-Dsession-managers=[]
- cov-configure --config coverity_conf.xml - cov-configure --config coverity_conf.xml
--comptype gcc --compiler cc --template --comptype gcc --compiler cc --template
--xml-option=append_arg@C:--ppp_translator --xml-option=append_arg@C:--ppp_translator