From 43d65e0ff0c38cafa40152953bdbedc2bcae0fb9 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Thu, 29 Aug 2024 17:08:53 +0100 Subject: [PATCH] ci: Make per-build dependencies optional Sometimes not all of the jobs execute. For instance, Windows build jobs will not trigger on AMD-only MRs. Use the 'optional' keyword to ignore jobs which don't exist in our pipeline. Signed-off-by: Daniel Stone Fixes: 310e3bb0266b ("ci: do not start build-only jobs until the critical build-for-tests jobs are done") Part-of: --- .gitlab-ci/build/gitlab-ci.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci/build/gitlab-ci.yml b/.gitlab-ci/build/gitlab-ci.yml index 8a0e2c29703..a17d7689c29 100644 --- a/.gitlab-ci/build/gitlab-ci.yml +++ b/.gitlab-ci/build/gitlab-ci.yml @@ -66,13 +66,20 @@ # Make sure this list stays the same as all the jobs with # `stage: build-for-tests` .build-for-tests-jobs: - - debian-testing - - debian-testing-asan - - debian-arm32 - - debian-arm32-asan - - debian-arm64 - - debian-arm64-asan - - windows-msvc + - job: debian-testing + optional: true + - job: debian-testing-asan + optional: true + - job: debian-arm32 + optional: true + - job: debian-arm32-asan + optional: true + - job: debian-arm64 + optional: true + - job: debian-arm64-asan + optional: true + - job: windows-msvc + optional: true debian-testing: