mirror of
https://github.com/actions/runner-images.git
synced 2025-12-16 06:40:32 +00:00
[macOS] Update AzCopy installer to install 10.21.2 version (#9003)
This commit is contained in:
@@ -5,18 +5,21 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
source ~/utils/utils.sh
|
source ~/utils/utils.sh
|
||||||
arch=$(get_arch)
|
|
||||||
|
|
||||||
# Check MacOS architecture and if ARM install using brew
|
if is_Arm64; then
|
||||||
if [ "$arch" == "arm64" ]; then
|
# latest is available by https://aka.ms/downloadazcopy-v10-mac-arm64
|
||||||
brew_smart_install azcopy
|
url="https://azcopyvnext.azureedge.net/releases/release-10.21.2-20231106/azcopy_darwin_arm64_10.21.2.zip"
|
||||||
else
|
else
|
||||||
# Temporary pin 10.21.2 version of AzCopy until 10.22.0 is fixed
|
# latest is available by https://aka.ms/downloadazcopy-v10-mac
|
||||||
archive_path=$(download_with_retry "https://azcopyvnext.azureedge.net/releases/release-10.21.2-20231106/azcopy_darwin_amd64_10.21.2.zip")
|
url="https://azcopyvnext.azureedge.net/releases/release-10.21.2-20231106/azcopy_darwin_amd64_10.21.2.zip"
|
||||||
unzip -qq "$archive_path" -d /tmp/azcopy
|
|
||||||
extract_path=$(echo /tmp/azcopy/azcopy*)
|
|
||||||
cp "$extract_path/azcopy" "/usr/local/bin/azcopy"
|
|
||||||
chmod +x "/usr/local/bin/azcopy"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Install AzCopy
|
||||||
|
archive_path=$(download_with_retry "${url}")
|
||||||
|
unzip -qq "$archive_path" -d /tmp/azcopy
|
||||||
|
extract_path=$(echo /tmp/azcopy/azcopy*)
|
||||||
|
cp "$extract_path/azcopy" "/usr/local/bin/azcopy"
|
||||||
|
chmod +x "/usr/local/bin/azcopy"
|
||||||
|
|
||||||
|
|
||||||
invoke_tests "Common" "AzCopy"
|
invoke_tests "Common" "AzCopy"
|
||||||
|
|||||||
Reference in New Issue
Block a user