mirror of
https://github.com/actions/runner-images.git
synced 2025-12-17 07:06:54 +00:00
[Ubuntu] Install zstd homebrew (#3181)
* install zstd using brew * fix typo * remove Run-Command * replace to Take-OutputPart * create zstd symlinks
This commit is contained in:
committed by
GitHub
parent
16fd521369
commit
b04de88f6e
@@ -7,6 +7,7 @@
|
||||
|
||||
# Source the helpers
|
||||
source $HELPER_SCRIPTS/etc-environment.sh
|
||||
source $HELPER_SCRIPTS/install.sh
|
||||
|
||||
# Install the Homebrew on Linux
|
||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
|
||||
@@ -25,4 +26,15 @@ setEtcEnvironmentVariable HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS 3650
|
||||
echo "Validate the installation reloading /etc/environment"
|
||||
reloadEtcEnvironment
|
||||
|
||||
# Install additional brew packages
|
||||
brew_packages=$(get_toolset_value .brew[].name)
|
||||
for package in $brew_packages; do
|
||||
echo "Install $package"
|
||||
brew install $package
|
||||
# create symlinks for zstd in /usr/local/bin
|
||||
if [[ $package == "zstd" ]]; then
|
||||
find $(brew --prefix)/bin -name *zstd* -exec sudo sh -c 'ln -s {} /usr/local/bin/$(basename {})' ';'
|
||||
fi
|
||||
done
|
||||
|
||||
invoke_tests "Tools" "Homebrew"
|
||||
|
||||
Reference in New Issue
Block a user