2019-11-21 11:21:40 +00:00
|
|
|
stages:
|
|
|
|
- container
|
|
|
|
- build
|
2020-05-19 07:05:53 +00:00
|
|
|
- pages
|
2019-11-21 11:21:40 +00:00
|
|
|
|
|
|
|
variables:
|
2020-03-09 07:33:35 +00:00
|
|
|
FDO_UPSTREAM_REPO: 'pipewire/pipewire'
|
2020-05-19 06:29:04 +00:00
|
|
|
|
2021-03-25 09:27:49 +00:00
|
|
|
# ci-templates as of March 19th 2021
|
|
|
|
.templates_sha: &templates_sha 290b79e0e78eab67a83766f4e9691be554fc4afd
|
2019-11-21 11:21:40 +00:00
|
|
|
|
|
|
|
include:
|
2020-05-19 06:29:04 +00:00
|
|
|
- project: 'freedesktop/ci-templates'
|
|
|
|
ref: *templates_sha
|
2019-11-21 11:21:40 +00:00
|
|
|
file: '/templates/fedora.yml'
|
|
|
|
|
2020-05-19 06:29:04 +00:00
|
|
|
.fedora:
|
2019-11-21 11:21:40 +00:00
|
|
|
variables:
|
2020-05-19 06:29:04 +00:00
|
|
|
# Update this tag when you want to trigger a rebuild
|
2021-03-25 09:27:49 +00:00
|
|
|
FDO_DISTRIBUTION_TAG: '2021-03-25.1'
|
|
|
|
FDO_DISTRIBUTION_VERSION: '33'
|
2020-05-19 06:29:04 +00:00
|
|
|
FDO_DISTRIBUTION_PACKAGES: >-
|
2019-11-21 11:21:40 +00:00
|
|
|
alsa-lib-devel
|
|
|
|
bluez-libs-devel
|
|
|
|
dbus-devel
|
|
|
|
doxygen
|
|
|
|
findutils
|
|
|
|
gcc
|
|
|
|
git
|
|
|
|
glib-devel
|
|
|
|
graphviz
|
|
|
|
gstreamer1-devel
|
|
|
|
gstreamer1-plugins-base-devel
|
|
|
|
jack-audio-connection-kit-devel
|
|
|
|
libv4l-devel
|
|
|
|
libva-devel
|
|
|
|
libX11-devel
|
|
|
|
meson
|
|
|
|
pulseaudio-libs-devel
|
|
|
|
sbc-devel
|
|
|
|
SDL2-devel
|
|
|
|
systemd-devel
|
|
|
|
vulkan-loader-devel
|
|
|
|
which
|
|
|
|
xmltoman
|
2020-01-17 14:06:04 +00:00
|
|
|
libsndfile-devel
|
2019-11-03 14:58:48 +00:00
|
|
|
|
2020-05-19 06:29:04 +00:00
|
|
|
.build:
|
|
|
|
before_script:
|
|
|
|
# setup the environment
|
|
|
|
- export BUILD_ID="$CI_JOB_NAME"
|
|
|
|
- export PREFIX="$PWD/prefix-$BUILD_ID"
|
|
|
|
- export BUILD_DIR="$PWD/build-$BUILD_ID"
|
|
|
|
- export XDG_RUNTIME_DIR="$(mktemp -p $PWD -d xdg-runtime-XXXXXX)"
|
2019-11-03 14:58:48 +00:00
|
|
|
script:
|
2020-05-19 06:29:04 +00:00
|
|
|
- meson "$BUILD_DIR" . --prefix="$PREFIX"
|
2021-03-10 18:36:27 +00:00
|
|
|
-Ddocs=enabled
|
|
|
|
-Dinstalled_tests=enabled
|
|
|
|
-Dsystemd-system-service=enabled
|
|
|
|
-Dbluez5-backend-hsphfpd=enabled
|
|
|
|
-Daudiotestsrc=enabled
|
|
|
|
-Dtest=enabled
|
|
|
|
-Dvideotestsrc=enabled
|
|
|
|
-Dvolume=enabled
|
|
|
|
-Dvulkan=enabled
|
2021-03-03 10:43:31 +00:00
|
|
|
-Dsdl2=enabled
|
|
|
|
-Dsndfile=enabled
|
2020-05-19 06:29:04 +00:00
|
|
|
- ninja -C "$BUILD_DIR"
|
|
|
|
- ninja -C "$BUILD_DIR" test
|
|
|
|
- ninja -C "$BUILD_DIR" install
|
|
|
|
- ./check_missing_headers.sh
|
2019-11-03 14:58:48 +00:00
|
|
|
artifacts:
|
2020-05-19 06:29:04 +00:00
|
|
|
name: pipewire-$CI_COMMIT_SHA
|
|
|
|
when: always
|
2019-11-03 14:58:48 +00:00
|
|
|
paths:
|
2020-05-19 06:29:04 +00:00
|
|
|
- build-*/meson-logs
|
|
|
|
- prefix-*
|
|
|
|
|
|
|
|
container_fedora:
|
|
|
|
extends:
|
|
|
|
- .fedora
|
|
|
|
- .fdo.container-build@fedora
|
|
|
|
stage: container
|
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
|
|
|
|
|
|
|
|
build_on_fedora:
|
|
|
|
extends:
|
|
|
|
- .fedora
|
|
|
|
- .fdo.distribution-image@fedora
|
|
|
|
- .build
|
|
|
|
stage: build
|
2020-05-19 07:05:53 +00:00
|
|
|
|
|
|
|
pages:
|
|
|
|
stage: pages
|
|
|
|
dependencies:
|
|
|
|
- build_on_fedora
|
|
|
|
script:
|
|
|
|
- export PREFIX="$PWD/prefix-build_on_fedora"
|
|
|
|
- mkdir public
|
|
|
|
- cp -R $PREFIX/share/doc/pipewire/html/* public/
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
|
|
|
only:
|
|
|
|
- master
|