Skip to content

Commit c588054

Browse files
committed
Auto merge of #1656 - jtgeibel:trigger-clean-build-on-ci, r=jtgeibel
Force a clean build on CI Cache creation is currently failing on stable and beta channels.
2 parents 66249a3 + 68cf4cb commit c588054

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

script/ci/cargo-clean-on-new-rustc-version.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,23 @@
33
set -e
44

55
manual_stamp_file=target/ci_manual_stamp
6-
manual_stamp=0 # Change this to force a clean build on CI
6+
manual_stamp=1 # Change this to force a clean build on CI
77

88
if [ -f $manual_stamp_file ]; then
99
if echo "$manual_stamp" | cmp -s $manual_stamp_file -; then
1010
: # Do nothing, fall through to version check below
1111
else
1212
echo "A clean build has been requested, running cargo clean"
1313
cargo clean
14-
# The target/ directory is now gone, and the messages below will not be printed
1514
fi
15+
else
16+
echo "Existing stamp not found, running cargo clean"
17+
cargo clean
1618
fi
1719

20+
# If `cargo clean` was run above, then the target/ directory is now
21+
# gone and the messages below will not be printed
22+
1823
stamp_file=target/rustc_version_stamp
1924
current_version=$(rustc --version)
2025

0 commit comments

Comments
 (0)