Skip to content

Commit d5e2232

Browse files
committed
Downgrade rust nightly if necessary to run rustfmt.
1 parent 8cfebc7 commit d5e2232

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.buildbot.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ export CARGO_HOME="`pwd`/.cargo"
66
export RUSTUP_HOME="`pwd`/.rustup"
77

88
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup.sh
9-
# Install no toolchain initially to ensure toolchain rollback.
10-
sh rustup.sh --default-host x86_64-unknown-linux-gnu --default-toolchain none -y --no-modify-path
11-
9+
sh rustup.sh --default-host x86_64-unknown-linux-gnu \
10+
--default-toolchain nightly \
11+
--no-modify-path \
12+
--profile minimal \
13+
-y
1214
export PATH=`pwd`/.cargo/bin/:$PATH
13-
rustup install nightly
15+
cargo check
1416

17+
rustup toolchain install nightly --allow-downgrade --component rustfmt
1518
cargo +nightly fmt --all -- --check
16-
cargo check

0 commit comments

Comments
 (0)