Commit 2bf3004 1 parent cdddcd3 commit 2bf3004 Copy full SHA for 2bf3004
File tree 3 files changed +42
-0
lines changed
3 files changed +42
-0
lines changed Original file line number Diff line number Diff line change 93
93
- name : show the current environment
94
94
run : src/ci/scripts/dump-environment.sh
95
95
if : success() && !env.SKIP_JOB
96
+ - name : install awscli
97
+ run : src/ci/scripts/install-awscli.sh
98
+ if : success() && !env.SKIP_JOB
96
99
- name : install sccache
97
100
run : src/ci/scripts/install-sccache.sh
98
101
if : success() && !env.SKIP_JOB
@@ -458,6 +461,9 @@ jobs:
458
461
- name : show the current environment
459
462
run : src/ci/scripts/dump-environment.sh
460
463
if : success() && !env.SKIP_JOB
464
+ - name : install awscli
465
+ run : src/ci/scripts/install-awscli.sh
466
+ if : success() && !env.SKIP_JOB
461
467
- name : install sccache
462
468
run : src/ci/scripts/install-sccache.sh
463
469
if : success() && !env.SKIP_JOB
@@ -578,6 +584,9 @@ jobs:
578
584
- name : show the current environment
579
585
run : src/ci/scripts/dump-environment.sh
580
586
if : success() && !env.SKIP_JOB
587
+ - name : install awscli
588
+ run : src/ci/scripts/install-awscli.sh
589
+ if : success() && !env.SKIP_JOB
581
590
- name : install sccache
582
591
run : src/ci/scripts/install-sccache.sh
583
592
if : success() && !env.SKIP_JOB
Original file line number Diff line number Diff line change @@ -153,6 +153,10 @@ x--expand-yaml-anchors--remove:
153
153
run : src/ci/scripts/dump-environment.sh
154
154
<< : *step
155
155
156
+ - name : install awscli
157
+ run : src/ci/scripts/install-awscli.sh
158
+ << : *step
159
+
156
160
- name : install sccache
157
161
run : src/ci/scripts/install-sccache.sh
158
162
<< : *step
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # This script downloads and installs the awscli binaries directly from
3
+ # Amazon.
4
+
5
+ set -euo pipefail
6
+ IFS=$' \n\t '
7
+
8
+ source " $( cd " $( dirname " $0 " ) " && pwd) /../shared.sh"
9
+
10
+ AWS_VERSION=" 2.13.25"
11
+
12
+ # Only the macOS arm64/aarch64 GitHub Actions runner needs to have AWS
13
+ # installed; other platforms have it preinstalled.
14
+
15
+ if isMacOS; then
16
+ platform=$( uname -m)
17
+ case $platform in
18
+ x86_64)
19
+ ;;
20
+ arm64)
21
+ file=" https://awscli.amazonaws.com/AWSCLIV2-${AWS_VERSION} .pkg"
22
+ retry curl -f " ${file} " -o " AWSCLIV2.pkg"
23
+ sudo installer -pkg " AWSCLIV2.pkg" -target /
24
+ ;;
25
+ * )
26
+ echo " unsupported architecture: ${platform} "
27
+ exit 1
28
+ esac
29
+ fi
You can’t perform that action at this time.
0 commit comments