Skip to content

Commit e997749

Browse files
committed
Rename old toolchains on windows to speedup installation
1 parent 89a11eb commit e997749

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,13 @@ jobs:
2323
- name: Checkout repository
2424
uses: actions/checkout@v1
2525

26-
- name: Cleanup Rust components (Windows)
26+
# We need to disable the existing toolchain to avoid updating rust-docs
27+
# which takes a long time. The fastest way to do this is to rename the
28+
# existing folder, as deleting it takes about as much time as not doing
29+
# anything and just updating rust-docs.
30+
- name: Rename existing rust toolchain (Windows)
2731
if: matrix.os == 'windows-latest'
28-
run: rustup component remove rust-docs
32+
run: Rename-Item C:\Users\runneradmin\.rustup\toolchains\stable-x86_64-pc-windows-msvc C:\Users\runneradmin\.rustup\toolchains\stable-x86_64-pc-windows-msvc.old
2933

3034
- name: Install Rust toolchain
3135
uses: actions-rs/toolchain@v1

0 commit comments

Comments
 (0)