From 9f3f54439ea228d9ccf9f63f6281850f7264b476 Mon Sep 17 00:00:00 2001 From: Nora Widdecke Date: Tue, 9 Mar 2021 11:24:28 +0100 Subject: ci: Disable windows jobs for forks. --- .gitlab-ci.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 33177c87..2818c321 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -98,10 +98,15 @@ windows-gnu: # This job takes ~20 minutes to run, let's only execute it manually or for # scheduled builds, otherwise this will stall MRs often not related to Windows only: - - /windows/i # refs containing 'windows' keyword - - tags - - web - - scheduled + refs: + - /windows/i # refs containing 'windows' keyword + - tags + - web + - scheduled + variables: + # Forks of this project most likely use gitlab's shared windows runners, which + # do not use the docker executor, so disable the windows jobs for forks. + - $CI_PROJECT_NAMESPACE == "sequoia-pgp" before_script: - clang -v - rustc --version --verbose @@ -120,6 +125,11 @@ windows-msvc: - win2019 stage: build image: registry.gitlab.com/sequoia-pgp/build-docker-image/windows-msvc + only: + variables: + # Forks of this project most likely use gitlab's shared windows runners, which + # do not use the docker executor, so disable the windows jobs for forks. + - $CI_PROJECT_NAMESPACE == "sequoia-pgp" before_script: - rustc --version --verbose - cargo --version -- cgit v1.2.3