Skip to content

Commit 8e03e74

Browse files
authored
Merge pull request #2199 from lzutao/windows-rm-docs
build: Remove rust-docs before updating toolchain
2 parents 6191ab5 + e201c1f commit 8e03e74

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,12 @@ jobs:
8787
del rustup-init.exe
8888
shell: powershell
8989
- name: Ensure stable toolchain is up to date
90+
# Remove `rust-docs` component since `rustup update` will remove and reinstall it
91+
# which is slower than just remove it first anyway.
9092
run: |
93+
rustup component remove rust-docs || echo "already removed"
9194
rustup update stable
95+
shell: bash
9296
- name: Install the target
9397
run: |
9498
rustup target install ${{ matrix.target }}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,12 @@ jobs:
8484
del rustup-init.exe
8585
shell: powershell
8686
- name: Ensure stable toolchain is up to date
87+
# Remove `rust-docs` component since `rustup update` will remove and reinstall it
88+
# which is slower than just remove it first anyway.
8789
run: |
90+
rustup component remove rust-docs || echo "already removed"
8891
rustup update stable
92+
shell: bash
8993
- name: Install the target
9094
run: |
9195
rustup target install ${{ matrix.target }}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,12 @@ jobs:
8787
del rustup-init.exe
8888
shell: powershell
8989
- name: Ensure stable toolchain is up to date
90+
# Remove `rust-docs` component since `rustup update` will remove and reinstall it
91+
# which is slower than just remove it first anyway.
9092
run: |
93+
rustup component remove rust-docs || echo "already removed"
9194
rustup update stable
95+
shell: bash
9296
- name: Install the target
9397
run: |
9498
rustup target install ${{ matrix.target }}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,12 @@ jobs:
9595
del rustup-init.exe
9696
shell: powershell
9797
- name: Ensure stable toolchain is up to date
98+
# Remove `rust-docs` component since `rustup update` will remove and reinstall it
99+
# which is slower than just remove it first anyway.
98100
run: |
101+
rustup component remove rust-docs || echo "already removed"
99102
rustup update stable
103+
shell: bash
100104
- name: Install the target
101105
run: |
102106
rustup target install ${{ matrix.target }}

0 commit comments

Comments
 (0)