use git version

This commit is contained in:
Lzu Tao 2019-10-12 10:18:31 +07:00
parent dce46325b5
commit 83f04442ec
2 changed files with 5 additions and 2 deletions

View File

@ -18,7 +18,7 @@ install:
- rustup-init.exe -y --default-host %TARGET% --default-toolchain nightly
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
- del rust-toolchain
- cargo install rustup-toolchain-install-master --debug || echo "rustup-toolchain-install-master already installed"
- cargo install --git https://github.com/kennytm/rustup-toolchain-install-master --debug || echo "rustup-toolchain-install-master already installed"
- rustup-toolchain-install-master -f -n master -c rustc-dev
- rustup component add rustfmt --toolchain nightly & exit 0 # Format test handles missing rustfmt
- rustup default master

View File

@ -4,7 +4,10 @@
cd "$(dirname "$0")" || exit
if ! command -v rustup-toolchain-install-master > /dev/null; then
cargo install rustup-toolchain-install-master --debug
cargo install \
--git https://github.com/kennytm/rustup-toolchain-install-master \
--bin rustup-toolchain-install-master \
--debug
fi
rustup-toolchain-install-master -f -n master -c rustc-dev