summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2024-02-29 13:13:18 +1000
committerMarge Bot <emma+marge@anholt.net>2024-03-19 00:37:35 +0000
commit052909ab9b4c47fa2d8ac9972eebe32c2fe97c3f (patch)
treee649928514fa06db1fdf9cef404edf6c0cc6980f
parent89b7f45010df63cae96a0eec9bfcddd2dd64eef7 (diff)
CI: Only run the driver build job on Xorg changes
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1318>
-rw-r--r--.gitlab-ci.yml55
1 files changed, 55 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c702d4160..8aebd5d5b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -46,6 +46,54 @@ stages:
# Cancel CI run if a newer commit is pushed to the same branch
interruptible: true
+# This is everything but the DDXen
+.dix_paths: &dix_paths
+ # Directories
+ - .gitlab-ci/**/*
+ - composite/**/*
+ - config/**/*
+ - damageext/**/*
+ - dbe/**/*
+ - dix/**/*
+ - doc/**/*
+ - dri3/**/*
+ - exa/**/*
+ - fb/**/*
+ - glamor/**/*
+ - glx/**/*
+ - include/**/*
+ - m4/**/*
+ - man/**/*
+ - mi/**/*
+ - miext/**/*
+ - os/**/*
+ - present/**/*
+ - pseudoramiX/**/*
+ - randr/**/*
+ - record/**/*
+ - render/**/*
+ - test/**/*
+ - Xext/**/*
+ - xfixes/**/*
+ - Xi/**/*
+ - xkb/**/*
+ # Files
+ - hw/meson.build
+ - .gitlab-ci.yml
+ - meson*
+ - xorg-server.m4
+ - xorg-server.pc.in
+ - xserver.ent.in
+
+.xorg_paths: &xorg_paths
+ - hw/xfree86/**/*
+
+.xwayland_paths: &xwayland_paths
+ - hw/xwayland/**/*
+
+.all_ddx_paths:
+ - hw/**/*
+
debian-bullseye:
extends:
- .fdo.container-build@debian
@@ -167,6 +215,13 @@ xf86-driver-build-test:
GIT_DEPTH: 1
MESON_ARGS: -Dprefix=/usr/
MESON_EXTRA_ARGS: -Dxwayland=false -Dxnest=false -Dxvfb=false -Dxquartz=false -Ddocs=false
+ rules:
+ - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
+ changes:
+ *dix_paths
+ - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
+ changes:
+ *xorg_paths
#
# Verify that commit messages are as expected