diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2021-03-09 11:24:28 +0100 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2021-03-09 11:24:28 +0100 |
commit | 9f3f54439ea228d9ccf9f63f6281850f7264b476 (patch) | |
tree | f9c3161666d62d47bfb45c52a91876c44f02b818 /.gitlab-ci.yml | |
parent | 7707fcd076adb5b3fcc39edb1b63f7d63e62bf77 (diff) |
ci: Disable windows jobs for forks.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 18 |
1 files changed, 14 insertions, 4 deletions
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 |