only on nightly

This commit is contained in:
Eh2406 2019-11-04 16:14:46 -05:00
parent 5d35d90223
commit e028b8765c
1 changed files with 3 additions and 1 deletions

View File

@ -15,7 +15,9 @@ steps:
rustup set profile minimal
rustup component remove --toolchain=$TOOLCHAIN rust-docs || echo "already removed"
rustup update --no-self-update $TOOLCHAIN
rustup component add --toolchain=$TOOLCHAIN rustc-dev
if [ "$TOOLCHAIN" = "nightly" ]; then
rustup component add --toolchain=$TOOLCHAIN rustc-dev
fi
rustup default $TOOLCHAIN
displayName: Install rust