|
1 | 1 | #
|
2 | 2 | # This file maintains the rust versions for use by CI.
|
3 | 3 | #
|
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 |
7 | 6 | #
|
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 |
9 | 11 | # $ source ci/rust-version.sh nightly
|
| 12 | + |
| 13 | +# Then to build with either stable or nightly: |
| 14 | +# $ cargo +"$rust_stable" build |
10 | 15 | # $ cargo +"$rust_nightly" build
|
11 | 16 | #
|
12 |
| -# Obtain the environment variables without any automatic toolchain updating: |
13 |
| -# $ source ci/rust-version.sh |
14 |
| -# |
15 | 17 |
|
16 | 18 | if [[ -n $RUST_STABLE_VERSION ]]; then
|
17 | 19 | stable_version="$RUST_STABLE_VERSION"
|
@@ -51,6 +53,10 @@ export rust_nightly_docker_image=solanalabs/rust-nightly:"$nightly_version"
|
51 | 53 | nightly)
|
52 | 54 | rustup_install "$rust_nightly"
|
53 | 55 | ;;
|
| 56 | + all) |
| 57 | + rustup_install "$rust_stable" |
| 58 | + rustup_install "$rust_nightly" |
| 59 | + ;; |
54 | 60 | *)
|
55 | 61 | echo "Note: ignoring unknown argument: $1"
|
56 | 62 | ;;
|
|
0 commit comments