Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 146fe71

Browse files
mvinesmergify-bot
authored andcommitted
Update stable and nightly in test-bench.sh
1 parent 88d24f6 commit 146fe71

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

ci/rust-version.sh

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
#
22
# This file maintains the rust versions for use by CI.
33
#
4-
# Build with stable rust, updating the stable toolchain if necessary:
5-
# $ source ci/rust-version.sh stable
6-
# $ cargo +"$rust_stable" build
4+
# Obtain the environment variables without any automatic toolchain updating:
5+
# $ source ci/rust-version.sh
76
#
8-
# Build with nightly rust, updating the nightly toolchain if necessary:
7+
# Obtain the environment variables updating both stable and nightly, only stable, or
8+
# only nightly:
9+
# $ source ci/rust-version.sh all
10+
# $ source ci/rust-version.sh stable
911
# $ source ci/rust-version.sh nightly
12+
13+
# Then to build with either stable or nightly:
14+
# $ cargo +"$rust_stable" build
1015
# $ cargo +"$rust_nightly" build
1116
#
12-
# Obtain the environment variables without any automatic toolchain updating:
13-
# $ source ci/rust-version.sh
14-
#
1517

1618
if [[ -n $RUST_STABLE_VERSION ]]; then
1719
stable_version="$RUST_STABLE_VERSION"
@@ -51,6 +53,10 @@ export rust_nightly_docker_image=solanalabs/rust-nightly:"$nightly_version"
5153
nightly)
5254
rustup_install "$rust_nightly"
5355
;;
56+
all)
57+
rustup_install "$rust_stable"
58+
rustup_install "$rust_nightly"
59+
;;
5460
*)
5561
echo "Note: ignoring unknown argument: $1"
5662
;;

ci/test-bench.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ source ci/_
2525
source ci/upload-ci-artifact.sh
2626

2727
eval "$(ci/channel-info.sh)"
28-
source ci/rust-version.sh nightly
28+
source ci/rust-version.sh all
2929

3030
set -o pipefail
3131
export RUST_BACKTRACE=1

0 commit comments

Comments
 (0)