devops: make sure rust toolchain is installed (#3485)

Otherwise if required version is not installed the build fails with a cryptic message like
`error: toolchain '1.45.0-x86_64-unknown-linux-gnu' does not support components`
This commit is contained in:
Yury Semikhatsky 2020-08-19 09:11:28 -07:00 committed by GitHub
parent 8989d66bda
commit 56da4bb027
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,6 +48,7 @@ else
if command -v rustup >/dev/null; then
# We manage Rust version ourselves.
echo "-- Using rust v${RUST_VERSION}"
rustup install "${RUST_VERSION}"
rustup default "${RUST_VERSION}"
fi