wireplumber/.gitlab-ci.yml

112 lines
3.3 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 May 1st 2020
.templates_sha: &templates_sha 59de540b620c45739871d1a073d76d5521989d11
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-04-01.1'
FDO_DISTRIBUTION_VERSION: '32'
# findutils: used by the .build script below
# cmake: required for hotdoc
# dbus-devel: required by pipewire
# dbus-daemon: required by GDBus unit tests
# libxml, json-glib: required by hotdoc
FDO_DISTRIBUTION_PACKAGES: >-
findutils
gcc
gcc-c++
git
meson
cmake
glib2-devel
gobject-introspection-devel
dbus-devel
dbus-daemon
libxml2-devel
json-glib-devel
# install Doxygen, Sphinx and Breathe tools 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: >-
dnf -y install python3-pip doxygen python3-sphinx python3-sphinx_rtd_theme python3-breathe python-docutils ;
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