Only clone when necessary

This commit is contained in:
Julian Ospald 2021-10-27 12:06:24 +02:00
parent f728d5aa23
commit c23357df81
Signed by: hasufell
GPG Key ID: 3786C5262ECB4A3F

View File

@ -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