mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
[Ubuntu] update zstd version (#6681)
This commit is contained in:
@@ -22,23 +22,6 @@ setEtcEnvironmentVariable HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS 3650
|
||||
echo "Validate the installation reloading /etc/environment"
|
||||
reloadEtcEnvironment
|
||||
|
||||
# Install additional brew packages
|
||||
|
||||
# brew GCC installation needed because the default Ubuntu components
|
||||
# are too old for current brew software
|
||||
# See:
|
||||
# https://github.com/Homebrew/homebrew-core/issues/110877
|
||||
|
||||
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
|
||||
|
||||
gfortran=$(brew --prefix)/bin/gfortran
|
||||
# Remove gfortran symlink, not to conflict with system gfortran
|
||||
if [[ -e $gfortran ]]; then
|
||||
|
||||
22
images/linux/scripts/installers/zstd.sh
Normal file
22
images/linux/scripts/installers/zstd.sh
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash -e
|
||||
################################################################################
|
||||
## File: zstd.sh
|
||||
## Desc: Installs zstd
|
||||
################################################################################
|
||||
|
||||
# Source the helpers for use with the script
|
||||
source $HELPER_SCRIPTS/install.sh
|
||||
|
||||
apt-get install -y liblz4-dev
|
||||
release_tag=$(curl https://api.github.com/repos/facebook/zstd/releases/latest | jq -r '.tag_name')
|
||||
zstd_tar_name=zstd-${release_tag//v}.tar.gz
|
||||
URL=https://github.com/facebook/zstd/releases/download/${release_tag}/${zstd_tar_name}
|
||||
download_with_retries "${URL}" "/tmp" "${zstd_tar_name}"
|
||||
tar xzf /tmp/$zstd_tar_name -C /tmp
|
||||
make -C /tmp/zstd-${release_tag//v}/contrib/pzstd all
|
||||
make -C /tmp/zstd-${release_tag//v} zstd-release
|
||||
for copyprocess in zstd zstdless zstdgrep; do cp /tmp/zstd-${release_tag//v}/programs/$copyprocess /usr/local/bin/; done
|
||||
cp /tmp/zstd-${release_tag//v}/contrib/pzstd/pzstd /usr/local/bin/
|
||||
for symlink in zstdcat zstdmt unzstd; do ln -sf /usr/local/bin/zstd /usr/local/bin/$symlink; done
|
||||
|
||||
invoke_tests "Tools" "Zstd"
|
||||
Reference in New Issue
Block a user