* Speed up net.sh builds (#16360)
* Speed up net.sh builds
* feedback
* Update net/net.sh
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
* feedback
* fix
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
(cherry picked from commit 6cd4bc5e60
)
# Conflicts:
# scripts/cargo-install-all.sh
* fix
Co-authored-by: Justin Starry <justin@solana.com>
29 lines
685 B
Bash
Executable File
29 lines
685 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# shellcheck source=ci/rust-version.sh
|
|
here=$(dirname "$0")
|
|
|
|
toolchain=
|
|
case "$1" in
|
|
stable)
|
|
source "${here}"/ci/rust-version.sh stable
|
|
# shellcheck disable=SC2054 # rust_stable is sourced from rust-version.sh
|
|
toolchain="$rust_stable"
|
|
shift
|
|
;;
|
|
nightly)
|
|
source "${here}"/ci/rust-version.sh nightly
|
|
# shellcheck disable=SC2054 # rust_nightly is sourced from rust-version.sh
|
|
toolchain="$rust_nightly"
|
|
shift
|
|
;;
|
|
*)
|
|
source "${here}"/ci/rust-version.sh stable
|
|
# shellcheck disable=SC2054 # rust_stable is sourced from rust-version.sh
|
|
toolchain="$rust_stable"
|
|
;;
|
|
esac
|
|
|
|
set -x
|
|
exec cargo "+${toolchain}" "${@}"
|