Skip to content

Commit 2ca25c9

Browse files
committed
build: Remove rust-docs before updating toolchain
1 parent fff860b commit 2ca25c9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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)