From e997749a9c2537b8bd4c894aa14a8db9158a1c73 Mon Sep 17 00:00:00 2001 From: Emil Lauridsen Date: Fri, 3 Jan 2020 20:53:15 +0100 Subject: Rename old toolchains on windows to speedup installation --- .github/workflows/ci.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 733d9ce45..abdec602e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -23,9 +23,13 @@ jobs: - name: Checkout repository uses: actions/checkout@v1 - - name: Cleanup Rust components (Windows) + # We need to disable the existing toolchain to avoid updating rust-docs + # which takes a long time. The fastest way to do this is to rename the + # existing folder, as deleting it takes about as much time as not doing + # anything and just updating rust-docs. + - name: Rename existing rust toolchain (Windows) if: matrix.os == 'windows-latest' - run: rustup component remove rust-docs + 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 - name: Install Rust toolchain uses: actions-rs/toolchain@v1 -- cgit v1.2.3