mirror of
https://github.com/electron/electron.git
synced 2026-01-07 22:54:25 -05:00
build: gate brew commands in free-space-macos action (#49123)
fix: gate brew commands in free-space-macos action The brew uninstall and autoremove commands now only run if brew is available on the machine. This prevents failures on runners where Homebrew is not installed. Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
6
.github/actions/free-space-macos/action.yml
vendored
6
.github/actions/free-space-macos/action.yml
vendored
@@ -80,8 +80,10 @@ runs:
|
|||||||
sudo rm -rf /Users/runner/.rustup
|
sudo rm -rf /Users/runner/.rustup
|
||||||
|
|
||||||
# remove homebrew packages we don't need
|
# remove homebrew packages we don't need
|
||||||
brew uninstall -f --zap aws-sam-cli session-manager-plugin gcc gcc@13 gcc@14 llvm@18 gradle maven ant azure-cli
|
if command -v brew &> /dev/null; then
|
||||||
brew autoremove
|
brew uninstall -f --zap aws-sam-cli session-manager-plugin gcc gcc@13 gcc@14 llvm@18 gradle maven ant azure-cli
|
||||||
|
brew autoremove
|
||||||
|
fi
|
||||||
|
|
||||||
# lipo off some huge binaries arm64 versions to save space
|
# lipo off some huge binaries arm64 versions to save space
|
||||||
strip_universal_deep $(xcode-select -p)/../SharedFrameworks
|
strip_universal_deep $(xcode-select -p)/../SharedFrameworks
|
||||||
|
|||||||
Reference in New Issue
Block a user