mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
ci: add build jobs for automatic and custom-tailored options
Simple jobs that run a standard meson build process, once with no options selected, once with a matrix of various options explicitly enabled or disabled. This should pick up any accidental build errors. The CI_JOB_NAME now includes brackets which cause issues in file paths, so we use the CI_JOB_ID instead as build dir.
This commit is contained in:
parent
b758afbc22
commit
7e741ef983
1 changed files with 23 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ include:
|
||||||
.build:
|
.build:
|
||||||
before_script:
|
before_script:
|
||||||
# setup the environment
|
# setup the environment
|
||||||
- export BUILD_ID="$CI_JOB_NAME"
|
- export BUILD_ID="$CI_JOB_ID"
|
||||||
- export PREFIX="$PWD/prefix-$BUILD_ID"
|
- export PREFIX="$PWD/prefix-$BUILD_ID"
|
||||||
- export BUILD_DIR="$PWD/build-$BUILD_ID"
|
- export BUILD_DIR="$PWD/build-$BUILD_ID"
|
||||||
- export XDG_RUNTIME_DIR="$(mktemp -p $PWD -d xdg-runtime-XXXXXX)"
|
- export XDG_RUNTIME_DIR="$(mktemp -p $PWD -d xdg-runtime-XXXXXX)"
|
||||||
|
|
@ -129,6 +129,28 @@ build_on_fedora:
|
||||||
-Dsdl2=enabled
|
-Dsdl2=enabled
|
||||||
-Dsndfile=enabled
|
-Dsndfile=enabled
|
||||||
|
|
||||||
|
# build with all options on auto() or their default values
|
||||||
|
build_with_no_commandline_options:
|
||||||
|
extends:
|
||||||
|
- build_on_fedora
|
||||||
|
variables:
|
||||||
|
MESON_OPTIONS: ""
|
||||||
|
|
||||||
|
# build with a set of options enabled or disabled
|
||||||
|
build_with_custom_options:
|
||||||
|
extends:
|
||||||
|
- build_on_fedora
|
||||||
|
parallel:
|
||||||
|
matrix:
|
||||||
|
- MESON_OPTION: [docs, installed_tests, systemd-system-service, bluez5-backend-hsphfpd,
|
||||||
|
audiotestsrc, test, videotestsrc, volume, vulkan, sdl2, sndfile]
|
||||||
|
MESON_OPTION_VALUE: [enabled, disabled]
|
||||||
|
script:
|
||||||
|
- echo "Building with -D$MESON_OPTION=$MESON_OPTION_VALUE"
|
||||||
|
- meson "$BUILD_DIR" . --prefix="$PREFIX" "-D$MESON_OPTION=$MESON_OPTION_VALUE"
|
||||||
|
- ninja -C "$BUILD_DIR"
|
||||||
|
- ninja -C "$BUILD_DIR" test
|
||||||
|
|
||||||
build_with_coverity:
|
build_with_coverity:
|
||||||
extends:
|
extends:
|
||||||
- .fedora
|
- .fedora
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue