From c23357df81b56542c4114d3dd376cd84e52a49ff Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Wed, 27 Oct 2021 12:06:24 +0200 Subject: [PATCH] Only clone when necessary --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ab4c3a8..e2cc47f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -175,7 +175,7 @@ variables: - .brew_cache before_script: # Install brew locally in the project dir. Packages will also be installed here. - - git clone --depth=1 https://github.com/Homebrew/brew $CI_PROJECT_DIR/.brew + - [ -e "$CI_PROJECT_DIR/.brew" ] || git clone --depth=1 https://github.com/Homebrew/brew $CI_PROJECT_DIR/.brew - export PATH="$CI_PROJECT_DIR/.brew/bin:$CI_PROJECT_DIR/.brew/sbin:$PATH" # otherwise we seem to get intel binaries @@ -533,7 +533,7 @@ release:darwin:aarch64: - .brew_cache before_script: # Install brew locally in the project dir. Packages will also be installed here. - - git clone --depth=1 https://github.com/Homebrew/brew $CI_PROJECT_DIR/.brew + - [ -e "$CI_PROJECT_DIR/.brew" ] || git clone --depth=1 https://github.com/Homebrew/brew $CI_PROJECT_DIR/.brew - export PATH="$CI_PROJECT_DIR/.brew/bin:$CI_PROJECT_DIR/.brew/sbin:$PATH" # otherwise we seem to get intel binaries