mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
build: use release build of RTIM
rustup-toolchain-install-master on Travis Windows builds is unexpectedly slower when it was running on other OSes. This commit tries to use release build of RTIM as a mean to improve performance there.
This commit is contained in:
parent
77092a54d7
commit
7d7451a67a
2 changed files with 4 additions and 8 deletions
|
@ -24,7 +24,7 @@ install:
|
|||
- rustup-init.exe -y --default-host %TARGET% --default-toolchain nightly --profile=minimal
|
||||
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
|
||||
- del rust-toolchain
|
||||
- cargo install -Z install-upgrade rustup-toolchain-install-master --debug || echo "rustup-toolchain-install-master already installed"
|
||||
- cargo install -Z install-upgrade rustup-toolchain-install-master
|
||||
- rustup-toolchain-install-master -f -n master
|
||||
- rustup component add rustfmt --toolchain nightly & exit 0 # Format test handles missing rustfmt
|
||||
- rustup default master
|
||||
|
|
|
@ -3,14 +3,10 @@
|
|||
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")" || exit
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
if ! command -v rustup-toolchain-install-master > /dev/null; then
|
||||
cargo install \
|
||||
-Z install-upgrade \
|
||||
rustup-toolchain-install-master \
|
||||
--bin rustup-toolchain-install-master \
|
||||
--debug
|
||||
if [[ "$CI" == true ]] || ! command -v rustup-toolchain-install-master > /dev/null; then
|
||||
cargo install -Z install-upgrade rustup-toolchain-install-master --bin rustup-toolchain-install-master
|
||||
fi
|
||||
|
||||
rustup-toolchain-install-master -f -n master
|
||||
|
|
Loading…
Reference in a new issue