Skip to content

Commit

Permalink
Install xargo using CI dictated cargo version if available (#9068) (#…
Browse files Browse the repository at this point in the history
…9092)

automerge
  • Loading branch information
mergify[bot] committed Mar 26, 2020
1 parent ec76826 commit 6db3982
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions ci/rust-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
8 changes: 3 additions & 5 deletions sdk/bpf/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6db3982

Please sign in to comment.