From 5052447d34a37421282b8eb5a9677097518b86b7 Mon Sep 17 00:00:00 2001 From: Mark Hansen Date: Sat, 20 Feb 2021 18:35:19 +1100 Subject: [PATCH] Only run macOS CI on graphviz/graphviz repo Don't run on forks, which generally don't have access to macOS runners. Fixes #1951 --- .gitlab-ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 235889780..71caf0ea3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -102,6 +102,15 @@ portable-source: metrics: metrics.txt except: - tags + # Most submitters don't have access to the macOS runners, and if they try + # to run macOS pipeline jobs, the jobs will hang forever. This variable is + # only set on repos that have access to macOS runners, in GitLab repo + # settings. + # https://gitlab.com/graphviz/graphviz/-/settings/ci_cd + only: + variables: + - $CI_ENABLE_MACOS + .build_template: &windows_build_definition stage: build @@ -511,6 +520,14 @@ macos-autotools-test: artifacts: true tags: - macos + # Most submitters don't have access to the macOS runners, and if they try + # to run macOS pipeline jobs, the jobs will hang forever. This variable is + # only set on repos that have access to macOS runners, in GitLab repo + # settings. + # https://gitlab.com/graphviz/graphviz/-/settings/ci_cd + only: + variables: + - $CI_ENABLE_MACOS ubuntu18-04-cmake-test: <<: *linux_test_definition @@ -587,6 +604,14 @@ macos-cmake-test: artifacts: true tags: - macos + # Most submitters don't have access to the macOS runners, and if they try + # to run macOS pipeline jobs, the jobs will hang forever. This variable is + # only set on repos that have access to macOS runners, in GitLab repo + # settings. + # https://gitlab.com/graphviz/graphviz/-/settings/ci_cd + only: + variables: + - $CI_ENABLE_MACOS deployment: stage: deploy -- 2.40.0