summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorGuilherme Gallo <guilherme.gallo@collabora.com>2023-02-26 23:05:59 -0300
committerMarge Bot <emma+marge@anholt.net>2023-02-28 22:19:48 +0000
commit5b9a6106041263b40ba7789fbd3586aafa17faff (patch)
treee6fa8c6959b482610b82d5a07902399b737f26b4 /.gitlab-ci.yml
parentc91f4b2efbf66c4c3fd1a945281187587e14ab37 (diff)
downloadmesa-5b9a6106041263b40ba7789fbd3586aafa17faff.tar.gz
ci: Use workflow to make CI aware of performance jobs
With the workflow keyword, we can have more control over how pipelines are created. One of the features is to set a variable for the entire pipeline depending on the rule. These variables would be available for all jobs manifest and can be used inside job rules, for example. We can use that to set a variable to enable performance jobs in the pipeline, both at the YAML and script levels. Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21492>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index dd6839aa30d..5a4a4b03da9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,3 +1,10 @@
+workflow:
+ rules:
+ - if: $GITLAB_USER_LOGIN == "marge-bot" && $CI_COMMIT_BRANCH == null
+ variables:
+ MESA_CI_PERFORMANCE_ENABLED: 1
+ - when: always
+
variables:
FDO_UPSTREAM_REPO: mesa/mesa
MESA_TEMPLATES_COMMIT: &ci-templates-commit d5aa3941aa03c2f716595116354fb81eb8012acb