Skip to content

Commit f6f9dc9

Browse files
committed
CI: Correct AWS CLI support for Windows
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
1 parent 138d33e commit f6f9dc9

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

.github/workflows/windows-builds-on-master.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
run: bash ci/run.bash
102102
- name: Acquire the AWS tooling
103103
run: |
104-
pip3 install awscli
104+
choco upgrade awscli
105105
if: github.event_name == 'push' && github.ref == 'refs/heads/stable'
106106
- name: Prepare the dist
107107
run: |
@@ -110,11 +110,11 @@ jobs:
110110
if: github.event_name == 'push' && github.ref == 'refs/heads/stable'
111111
- name: Deploy build to dev-static dist tree for release team
112112
run: |
113-
aws s3 cp --recursive dist s3://dev-static-rust-lang-org/rustup/dist
114-
shell: powershell
113+
aws --debug s3 cp --recursive dist s3://dev-static-rust-lang-org/rustup/dist
115114
env:
116115
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
117116
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
117+
AWS_DEFAULT_REGION: us-west-1
118118
if: github.event_name == 'push' && github.ref == 'refs/heads/stable'
119119
- name: Clear the cargo caches
120120
run: |

.github/workflows/windows-builds-on-pr.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
run: bash ci/run.bash
9999
- name: Acquire the AWS tooling
100100
run: |
101-
pip3 install awscli
101+
choco upgrade awscli
102102
if: github.event_name == 'push' && github.ref == 'refs/heads/stable'
103103
- name: Prepare the dist
104104
run: |
@@ -107,11 +107,11 @@ jobs:
107107
if: github.event_name == 'push' && github.ref == 'refs/heads/stable'
108108
- name: Deploy build to dev-static dist tree for release team
109109
run: |
110-
aws s3 cp --recursive dist s3://dev-static-rust-lang-org/rustup/dist
111-
shell: powershell
110+
aws --debug s3 cp --recursive dist s3://dev-static-rust-lang-org/rustup/dist
112111
env:
113112
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
114113
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
114+
AWS_DEFAULT_REGION: us-west-1
115115
if: github.event_name == 'push' && github.ref == 'refs/heads/stable'
116116
- name: Clear the cargo caches
117117
run: |

.github/workflows/windows-builds-on-stable.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
run: bash ci/run.bash
102102
- name: Acquire the AWS tooling
103103
run: |
104-
pip3 install awscli
104+
choco upgrade awscli
105105
if: github.event_name == 'push' && github.ref == 'refs/heads/stable'
106106
- name: Prepare the dist
107107
run: |
@@ -110,11 +110,11 @@ jobs:
110110
if: github.event_name == 'push' && github.ref == 'refs/heads/stable'
111111
- name: Deploy build to dev-static dist tree for release team
112112
run: |
113-
aws s3 cp --recursive dist s3://dev-static-rust-lang-org/rustup/dist
114-
shell: powershell
113+
aws --debug s3 cp --recursive dist s3://dev-static-rust-lang-org/rustup/dist
115114
env:
116115
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
117116
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
117+
AWS_DEFAULT_REGION: us-west-1
118118
if: github.event_name == 'push' && github.ref == 'refs/heads/stable'
119119
- name: Clear the cargo caches
120120
run: |

ci/actions-templates/windows-builds-template.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109
run: bash ci/run.bash
110110
- name: Acquire the AWS tooling
111111
run: |
112-
pip3 install awscli
112+
choco upgrade awscli
113113
if: github.event_name == 'push' && github.ref == 'refs/heads/stable'
114114
- name: Prepare the dist
115115
run: |
@@ -118,11 +118,11 @@ jobs:
118118
if: github.event_name == 'push' && github.ref == 'refs/heads/stable'
119119
- name: Deploy build to dev-static dist tree for release team
120120
run: |
121-
aws s3 cp --recursive dist s3://dev-static-rust-lang-org/rustup/dist
122-
shell: powershell
121+
aws --debug s3 cp --recursive dist s3://dev-static-rust-lang-org/rustup/dist
123122
env:
124123
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
125124
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
125+
AWS_DEFAULT_REGION: us-west-1
126126
if: github.event_name == 'push' && github.ref == 'refs/heads/stable'
127127
- name: Clear the cargo caches
128128
run: |

0 commit comments

Comments
 (0)