mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
ci: update to use fdo ci-templates, fedora 32 and preserve less artifacts
+ also improve the build script, stop using make and do a native meson/ninja build + make it easy to add CI for more distributions later, if needed
This commit is contained in:
parent
31a3458c93
commit
df818f1e8e
1 changed files with 43 additions and 21 deletions
|
|
@ -3,23 +3,22 @@ stages:
|
||||||
- build
|
- build
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
# Update this tag when you want to trigger a rebuild
|
|
||||||
FDO_DISTRIBUTION_TAG: '2019-11-21-01'
|
|
||||||
FDO_DISTRIBUTION_VERSION: '31'
|
|
||||||
FDO_UPSTREAM_REPO: 'pipewire/pipewire'
|
FDO_UPSTREAM_REPO: 'pipewire/pipewire'
|
||||||
FDO_FEDORA_IMAGE: "$CI_REGISTRY_IMAGE/fedora/$FDO_DISTRIBUTION_VERSION:$FDO_DISTRIBUTION_TAG"
|
|
||||||
|
# ci-templates as of May 1st 2020
|
||||||
|
.templates_sha: &templates_sha 59de540b620c45739871d1a073d76d5521989d11
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- project: 'wayland/ci-templates'
|
- project: 'freedesktop/ci-templates'
|
||||||
ref: master
|
ref: *templates_sha
|
||||||
file: '/templates/fedora.yml'
|
file: '/templates/fedora.yml'
|
||||||
|
|
||||||
container_build:
|
.fedora:
|
||||||
extends: .fdo.container-ifnot-exists@fedora
|
|
||||||
stage: container
|
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
|
# Update this tag when you want to trigger a rebuild
|
||||||
FEDORA_RPMS: >-
|
FDO_DISTRIBUTION_TAG: '2020-05-19.1'
|
||||||
|
FDO_DISTRIBUTION_VERSION: '32'
|
||||||
|
FDO_DISTRIBUTION_PACKAGES: >-
|
||||||
alsa-lib-devel
|
alsa-lib-devel
|
||||||
bluez-libs-devel
|
bluez-libs-devel
|
||||||
dbus-devel
|
dbus-devel
|
||||||
|
|
@ -35,7 +34,6 @@ container_build:
|
||||||
libv4l-devel
|
libv4l-devel
|
||||||
libva-devel
|
libva-devel
|
||||||
libX11-devel
|
libX11-devel
|
||||||
make
|
|
||||||
meson
|
meson
|
||||||
pulseaudio-libs-devel
|
pulseaudio-libs-devel
|
||||||
sbc-devel
|
sbc-devel
|
||||||
|
|
@ -46,15 +44,39 @@ container_build:
|
||||||
xmltoman
|
xmltoman
|
||||||
libsndfile-devel
|
libsndfile-devel
|
||||||
|
|
||||||
build:
|
.build:
|
||||||
stage: build
|
before_script:
|
||||||
image: $FDO_FEDORA_IMAGE
|
# 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)"
|
||||||
script:
|
script:
|
||||||
- ./autogen.sh -Ddocs=true -Daudiomixer=true -Daudiotestsrc=true -Dtest=true -Dvideotestsrc=true -Dvolume=true
|
- meson "$BUILD_DIR" . --prefix="$PREFIX"
|
||||||
- make
|
-Ddocs=true -Daudiomixer=true -Daudiotestsrc=true
|
||||||
- XDG_RUNTIME_DIR=$PWD/build make test
|
-Dtest=true -Dvideotestsrc=true -Dvolume=true
|
||||||
- DESTDIR=$PWD/build/i make install
|
- ninja -C "$BUILD_DIR"
|
||||||
- PREFIX=$PWD/build/i/usr/local ./check_missing_headers.sh
|
- ninja -C "$BUILD_DIR" test
|
||||||
|
- ninja -C "$BUILD_DIR" install
|
||||||
|
- ./check_missing_headers.sh
|
||||||
artifacts:
|
artifacts:
|
||||||
|
name: pipewire-$CI_COMMIT_SHA
|
||||||
|
when: always
|
||||||
paths:
|
paths:
|
||||||
- build/
|
- 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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue