mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 08:37:14 +00:00
Install awscli
on the aarch64-apple-darwin builder
Unlike the other builders, this one doesn't come with it preinstalled.
This commit is contained in:
parent
cdddcd3bea
commit
2bf3004f33
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
|
@ -93,6 +93,9 @@ jobs:
|
|||
- name: show the current environment
|
||||
run: src/ci/scripts/dump-environment.sh
|
||||
if: success() && !env.SKIP_JOB
|
||||
- name: install awscli
|
||||
run: src/ci/scripts/install-awscli.sh
|
||||
if: success() && !env.SKIP_JOB
|
||||
- name: install sccache
|
||||
run: src/ci/scripts/install-sccache.sh
|
||||
if: success() && !env.SKIP_JOB
|
||||
|
@ -458,6 +461,9 @@ jobs:
|
|||
- name: show the current environment
|
||||
run: src/ci/scripts/dump-environment.sh
|
||||
if: success() && !env.SKIP_JOB
|
||||
- name: install awscli
|
||||
run: src/ci/scripts/install-awscli.sh
|
||||
if: success() && !env.SKIP_JOB
|
||||
- name: install sccache
|
||||
run: src/ci/scripts/install-sccache.sh
|
||||
if: success() && !env.SKIP_JOB
|
||||
|
@ -578,6 +584,9 @@ jobs:
|
|||
- name: show the current environment
|
||||
run: src/ci/scripts/dump-environment.sh
|
||||
if: success() && !env.SKIP_JOB
|
||||
- name: install awscli
|
||||
run: src/ci/scripts/install-awscli.sh
|
||||
if: success() && !env.SKIP_JOB
|
||||
- name: install sccache
|
||||
run: src/ci/scripts/install-sccache.sh
|
||||
if: success() && !env.SKIP_JOB
|
||||
|
|
|
@ -153,6 +153,10 @@ x--expand-yaml-anchors--remove:
|
|||
run: src/ci/scripts/dump-environment.sh
|
||||
<<: *step
|
||||
|
||||
- name: install awscli
|
||||
run: src/ci/scripts/install-awscli.sh
|
||||
<<: *step
|
||||
|
||||
- name: install sccache
|
||||
run: src/ci/scripts/install-sccache.sh
|
||||
<<: *step
|
||||
|
|
29
src/ci/scripts/install-awscli.sh
Executable file
29
src/ci/scripts/install-awscli.sh
Executable file
|
@ -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
|
Loading…
Reference in a new issue