File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 3
3
set -e
4
4
5
5
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
7
7
8
8
if [ -f $manual_stamp_file ]; then
9
9
if echo " $manual_stamp " | cmp -s $manual_stamp_file -; then
10
10
: # Do nothing, fall through to version check below
11
11
else
12
12
echo " A clean build has been requested, running cargo clean"
13
13
cargo clean
14
- # The target/ directory is now gone, and the messages below will not be printed
15
14
fi
15
+ else
16
+ echo " Existing stamp not found, running cargo clean"
17
+ cargo clean
16
18
fi
17
19
20
+ # If `cargo clean` was run above, then the target/ directory is now
21
+ # gone and the messages below will not be printed
22
+
18
23
stamp_file=target/rustc_version_stamp
19
24
current_version=$( rustc --version)
20
25
You can’t perform that action at this time.
0 commit comments