From 2f78829fda4d4d69daa1759be640353f534e60e1 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 15 Apr 2021 13:27:06 +1000 Subject: [PATCH] ci: split the build_on_fedora job up into a template and a real job Let's use a template for the generic case of "building on Fedora" and a named job for the specific job itself. The real change here is the artifact handling: by default the artifacts collected for a .build job are only the meson build logs. The build_on_fedora job collects the installed files as well (to be used in the pages job later). --- .gitlab-ci.yml | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 20a7c3b8c..42be5f5c7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -84,6 +84,11 @@ include: - ninja -C "$BUILD_DIR" test - ninja -C "$BUILD_DIR" install - ./check_missing_headers.sh + artifacts: + name: pipewire-$CI_COMMIT_SHA + when: always + paths: + - build-*/meson-logs container_fedora: extends: @@ -102,19 +107,17 @@ container_coverity: variables: GIT_STRATEGY: none -build_on_fedora: +.build_on_fedora: extends: - .fedora - .not_coverity - .fdo.distribution-image@fedora - .build stage: build - artifacts: - name: pipewire-$CI_COMMIT_SHA - when: always - paths: - - build-*/meson-logs - - prefix-* + +build_on_fedora: + extends: + - .build_on_fedora variables: MESON_OPTIONS: >- -Ddocs=enabled @@ -128,18 +131,24 @@ build_on_fedora: -Dvulkan=enabled -Dsdl2=enabled -Dsndfile=enabled + artifacts: + name: pipewire-$CI_COMMIT_SHA + when: always + paths: + - build-*/meson-logs + - prefix-* # build with all options on auto() or their default values build_with_no_commandline_options: extends: - - build_on_fedora + - .build_on_fedora variables: MESON_OPTIONS: "" # build with a set of options enabled or disabled build_with_custom_options: extends: - - build_on_fedora + - .build_on_fedora parallel: matrix: - MESON_OPTION: [docs, installed_tests, systemd-system-service, bluez5-backend-hsphfpd,