-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install
awscli
on the aarch64-apple-darwin builder
Unlike the other builders, this one doesn't come with it preinstalled.
- Loading branch information
1 parent
cdddcd3
commit 2bf3004
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |