File tree Expand file tree Collapse file tree 3 files changed +13
-15
lines changed Expand file tree Collapse file tree 3 files changed +13
-15
lines changed Original file line number Diff line number Diff line change 3838 fetch-depth : 20
3939
4040 - name : Install Rust toolchain
41- run : rustup update stable && rustup component add rustfmt rust-src
41+ run : |
42+ rustup update stable
43+ rustup component add rustfmt rust-src
4244
4345 - name : Cache Dependencies
4446 uses : Swatinem/rust-cache@ce325b60658c1b38465c06cc965b79baf32c1e72
6668 uses : actions/checkout@v3
6769
6870 - name : Install Rust toolchain
69- run : rustup update stable
70-
71- - name : Install Rust targets
72- run : rustup target add ${{ env.targets }} ${{ env.targets_ide }}
71+ run : |
72+ rustup update stable
73+ rustup target add ${{ env.targets }} ${{ env.targets_ide }}
7374
7475 - name : Cache Dependencies
7576 uses : Swatinem/rust-cache@ce325b60658c1b38465c06cc965b79baf32c1e72
Original file line number Diff line number Diff line change 2020 uses : actions/checkout@v3
2121
2222 - name : Install Rust toolchain
23- run : rustup update stable && rustup component add rustfmt rust-src
23+ run : |
24+ rustup update stable
25+ rustup component add rustfmt rust-src
2426
2527 - name : Collect metrics
2628 run : cargo xtask metrics
Original file line number Diff line number Diff line change @@ -55,16 +55,11 @@ jobs:
5555 with :
5656 fetch-depth : ${{ env.FETCH_DEPTH }}
5757
58- # We need to disable the existing toolchain to avoid updating rust-docs
59- # which takes a long time. The fastest way to do this is to rename the
60- # existing folder, as deleting it takes about as much time as not doing
61- # anything and just updating rust-docs.
62- - name : Rename existing Rust toolchain
63- if : matrix.os == 'windows-latest'
64- 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
65-
6658 - name : Install Rust toolchain
67- run : rustup update stable && rustup target add ${{ matrix.target }} && rustup component add rust-src
59+ run : |
60+ rustup update stable
61+ rustup target add ${{ matrix.target }}
62+ rustup component add rust-src
6863
6964 - name : Install Node.js
7065 uses : actions/setup-node@v1
You can’t perform that action at this time.
0 commit comments