summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Engestrom <eric@igalia.com>2023-07-07 23:06:06 +0100
committerEric Engestrom <eric@igalia.com>2023-07-07 23:06:06 +0100
commit8d6bd9421e55120b88f35557aaae81d05c247a40 (patch)
tree9d25c9f0eeda89dfa13ee1cd5706ca147b0f4021
parent56bc0a61b3198e1ffc0c2a67683e95fc80baf665 (diff)
ci: extend from a common job instead of using a bunch of yaml anchors
Signed-off-by: Eric Engestrom <eric@igalia.com>
-rw-r--r--.gitlab-ci.yml26
1 files changed, 11 insertions, 15 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 344a184..717485d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,16 +1,16 @@
-.artifacts-meson: &artifacts-meson
- when: always
- paths:
- - _build/meson-logs
-
-.meson-build: &meson-build
- - meson _build -D auto_features=enabled
- - ninja -C _build
+.meson:
+ stage: build
+ script:
+ - meson _build -D auto_features=enabled
+ - ninja -C _build
+ artifacts:
+ when: always
+ paths:
+ - _build/meson-logs
latest-meson:
- stage: build
+ extends: .meson
image: archlinux:base-devel
- artifacts: *artifacts-meson
before_script:
- pacman -Syu --noconfirm --needed
meson
@@ -19,12 +19,10 @@ latest-meson:
gstreamer
gst-plugins-base
libpng
- script: *meson-build
oldest-meson:
- stage: build
+ extends: .meson
image: debian:stable
- artifacts: *artifacts-meson
before_script:
- printf > /etc/dpkg/dpkg.cfg.d/99-exclude-cruft "%s\n"
'path-exclude=/usr/share/doc/*'
@@ -49,5 +47,3 @@ oldest-meson:
python3 python3-pip
libpng-dev
- pip3 install --break-system-packages meson==0.48
- script: *meson-build
-