Only install imagemagick when needed.
Workaround for issues installing python from brew on a runner right now.
This commit is contained in:
2
.github/workflows/pr-build.yml
vendored
2
.github/workflows/pr-build.yml
vendored
@@ -29,6 +29,8 @@ jobs:
|
|||||||
${{ runner.os }}-gems-
|
${{ runner.os }}-gems-
|
||||||
|
|
||||||
- name: Setup environment
|
- name: Setup environment
|
||||||
|
env:
|
||||||
|
CI_WORKFLOW: PR_BUILD
|
||||||
run:
|
run:
|
||||||
source ci_scripts/ci_common.sh && setup_github_actions_environment
|
source ci_scripts/ci_common.sh && setup_github_actions_environment
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,11 @@ setup_github_actions_environment() {
|
|||||||
unset HOMEBREW_NO_INSTALL_FROM_API
|
unset HOMEBREW_NO_INSTALL_FROM_API
|
||||||
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
|
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1
|
||||||
|
|
||||||
brew update && brew install xcodegen swiftformat git-lfs imagemagick a7ex/homebrew-formulae/xcresultparser
|
brew update && brew install xcodegen swiftformat git-lfs a7ex/homebrew-formulae/xcresultparser
|
||||||
|
|
||||||
|
if [ "$CI_WORKFLOW" = "PR_BUILD" ]; then
|
||||||
|
brew install imagemagick
|
||||||
|
fi
|
||||||
|
|
||||||
# brew "swiftlint" # Fails on the CI: `Target /usr/local/bin/swiftlint Target /usr/local/bin/swiftlint already exists`. Installed through https://github.com/actions/virtual-environments/blob/main/images/macos/macos-12-Readme.md#linters
|
# brew "swiftlint" # Fails on the CI: `Target /usr/local/bin/swiftlint Target /usr/local/bin/swiftlint already exists`. Installed through https://github.com/actions/virtual-environments/blob/main/images/macos/macos-12-Readme.md#linters
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user