mirror of
https://github.com/actions/runner-images.git
synced 2025-12-10 19:16:48 +00:00
22 lines
582 B
Bash
22 lines
582 B
Bash
#!/bin/bash -e -o pipefail
|
|
source ~/utils/utils.sh
|
|
arch=$(get_arch)
|
|
|
|
# Check MacOS architecture and if ARM install using brew
|
|
if [ $arch == "arm64" ]; then
|
|
brew_smart_install azcopy
|
|
else
|
|
AZCOPY_DOWNLOAD_URL="https://aka.ms/downloadazcopy-v10-mac"
|
|
|
|
download_with_retries $AZCOPY_DOWNLOAD_URL "/tmp" "azcopy.zip"
|
|
unzip /tmp/azcopy.zip -d azcopy
|
|
AZCOPY_EXTRACTED=$(echo azcopy/azcopy*)
|
|
cp "$AZCOPY_EXTRACTED/azcopy" "/usr/local/bin/azcopy"
|
|
chmod +x "/usr/local/bin/azcopy"
|
|
|
|
echo "Done, cleaning up"
|
|
rm -rf azcopy*
|
|
fi
|
|
|
|
invoke_tests "Common" "AzCopy"
|