wireplumber/.gitlab-ci.yml

110 lines
3.2 KiB
YAML

stages:
- container
- build
- pages
variables:
FDO_UPSTREAM_REPO: 'pipewire/wireplumber'
# change to build against a different tag or branch of pipewire
PIPEWIRE_HEAD: 'master'
# ci-templates as of Mar 19th 2021
.templates_sha: &templates_sha 290b79e0e78eab67a83766f4e9691be554fc4afd
include:
- project: 'freedesktop/ci-templates'
ref: *templates_sha
file: '/templates/fedora.yml'
.fedora:
variables:
# Update this tag when you want to trigger a rebuild
FDO_DISTRIBUTION_TAG: '2021-05-23.1'
FDO_DISTRIBUTION_VERSION: '34'
# findutils: used by the .build script below
# dbus-devel: required by pipewire
# dbus-daemon: required by GDBus unit tests
# pip, doxygen: required for documentation
FDO_DISTRIBUTION_PACKAGES: >-
findutils
gcc
gcc-c++
git
meson
glib2-devel
gobject-introspection-devel
dbus-devel
dbus-daemon
python3-pip
doxygen
# install Sphinx and Breathe to generate documentation
# also install glib2-doc (required to make documentation links to GLib work)
# manually, to remove the 'tsflags=nodocs' flag that is enabled by default
# in the fedora docker image
FDO_DISTRIBUTION_EXEC: >-
pip3 install lxml Sphinx sphinx-rtd-theme breathe ;
dnf -y install glib2-doc --setopt='tsflags='
.build:
before_script:
# setup the environment
- export BUILD_ID="$CI_JOB_NAME"
- export PREFIX="$PWD/prefix-$BUILD_ID"
- export PW_BUILD_DIR="$PWD/build-pipewire-$BUILD_ID"
# Build pipewire
# Fedora also ships that, but without the test plugins that we need...
- git clone --depth=1 --branch="$PIPEWIRE_HEAD"
https://gitlab.freedesktop.org/pipewire/pipewire.git
- meson "$PW_BUILD_DIR" pipewire --prefix="$PREFIX"
-Dpipewire-alsa=disabled -Dpipewire-pulseaudio=disabled -Dpipewire-jack=disabled
-Dalsa=disabled -Dv4l2=disabled -Djack=disabled -Dbluez5=disabled -Dvulkan=disabled
-Dgstreamer=disabled -Dsystemd=disabled
-Ddocs=disabled -Dman=disabled -Dexamples=disabled -Dpw-cat=disabled
-Dvideotestsrc=enabled -Daudiotestsrc=enabled -Dtest=enabled
- ninja -C "$PW_BUILD_DIR" install
# misc environment only for wireplumber
- export WP_BUILD_DIR="$PWD/build-wireplumber-$BUILD_ID"
- export XDG_RUNTIME_DIR="$(mktemp -p $PWD -d xdg-runtime-XXXXXX)"
- export PKG_CONFIG_PATH="$(dirname $(find "$PREFIX" -name 'libpipewire-*.pc')):$PKG_CONFIG_PATH"
script:
# Build wireplumber
- meson "$WP_BUILD_DIR" . --prefix="$PREFIX"
-Dintrospection=enabled -Ddoc=enabled
- cd "$WP_BUILD_DIR"
- ninja
- ninja test
- ninja install
artifacts:
name: wireplumber-$CI_COMMIT_SHA
when: always
paths:
- build-*/meson-logs
- prefix-*
container_fedora:
extends:
- .fedora
- .fdo.container-build@fedora
stage: container
build_on_fedora:
extends:
- .fedora
- .fdo.distribution-image@fedora
- .build
stage: build
pages:
stage: pages
dependencies:
- build_on_fedora
script:
- export PREFIX="$PWD/prefix-build_on_fedora"
- mkdir public
- cp -R $PREFIX/share/doc/wireplumber/html/* public/
artifacts:
paths:
- public
only:
- master