aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorEmil Lauridsen <[email protected]>2020-01-03 19:53:15 +0000
committerEmil Lauridsen <[email protected]>2020-01-03 20:42:17 +0000
commite997749a9c2537b8bd4c894aa14a8db9158a1c73 (patch)
tree7f535973bbb43b9f134d2bd51627af9c064be3f7 /.github/workflows
parent89a11eb811e82953b8ae5d5f688e607d20f66436 (diff)
Rename old toolchains on windows to speedup installation
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yaml8
1 files changed, 6 insertions, 2 deletions
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:
23 - name: Checkout repository 23 - name: Checkout repository
24 uses: actions/checkout@v1 24 uses: actions/checkout@v1
25 25
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)
27 if: matrix.os == 'windows-latest' 31 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
29 33
30 - name: Install Rust toolchain 34 - name: Install Rust toolchain
31 uses: actions-rs/toolchain@v1 35 uses: actions-rs/toolchain@v1