diff options
| author | bors <bors@rust-lang.org> | 2023-10-22 06:42:10 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-10-22 06:42:10 +0000 |
| commit | f6be93fc61fb487c496c94ebe76ee999572fc927 (patch) | |
| tree | 21b99801ee214bdc2a57505bdd1dfd64b1b908dc /src/ci/scripts | |
| parent | 49e8acbfe953f0c5209916830e02dcc7e005cf68 (diff) | |
| parent | 8cbac823d016c1afb3c24e3d87c2896566a7d5d7 (diff) | |
| download | rust-f6be93fc61fb487c496c94ebe76ee999572fc927.tar.gz rust-f6be93fc61fb487c496c94ebe76ee999572fc927.zip | |
Auto merge of #3133 - rust-lang:rustup-2023-10-22, r=RalfJung
Automatic Rustup
Diffstat (limited to 'src/ci/scripts')
| -rwxr-xr-x | src/ci/scripts/install-awscli.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/ci/scripts/install-awscli.sh b/src/ci/scripts/install-awscli.sh new file mode 100755 index 00000000000..b4a239fd3bc --- /dev/null +++ b/src/ci/scripts/install-awscli.sh @@ -0,0 +1,29 @@ +#!/bin/bash +# This script downloads and installs the awscli binaries directly from +# Amazon. + +set -euo pipefail +IFS=$'\n\t' + +source "$(cd "$(dirname "$0")" && pwd)/../shared.sh" + +AWS_VERSION="2.13.25" + +# Only the macOS arm64/aarch64 GitHub Actions runner needs to have AWS +# installed; other platforms have it preinstalled. + +if isMacOS; then + platform=$(uname -m) + case $platform in + x86_64) + ;; + arm64) + file="https://awscli.amazonaws.com/AWSCLIV2-${AWS_VERSION}.pkg" + retry curl -f "${file}" -o "AWSCLIV2.pkg" + sudo installer -pkg "AWSCLIV2.pkg" -target / + ;; + *) + echo "unsupported architecture: ${platform}" + exit 1 + esac +fi |
