Install xargo using CI dictated cargo version if available (#9068)

This commit is contained in:
Jack May 2020-03-26 11:47:41 -07:00 committed by GitHub
parent 6678dd10a5
commit 30bed18b77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View File

@ -38,6 +38,7 @@ export rust_nightly_docker_image=solanalabs/rust-nightly:"$nightly_version"
declare toolchain=$1
if ! cargo +"$toolchain" -V; then
rustup install "$toolchain"
rustup default "$toolchain"
cargo +"$toolchain" -V
fi
}

View File

@ -22,12 +22,10 @@ download() {
wget "${args[@]}"
}
# Install or upgrade xargo
# Install xargo
(
cargo install cargo-update
cargo install-update-config --version =0.3.19 xargo
set -e
cargo install-update -i xargo
set -ex
cargo +"${rust_stable:-}" install xargo
xargo --version > xargo.md 2>&1
)
# shellcheck disable=SC2181