File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -109,11 +109,18 @@ if [ "$TARGET" = "s390x-unknown-linux-gnu" ]; then
109
109
sleep 1
110
110
done
111
111
else
112
+ # rm -rf target is executed before each build to ensure there are no leftover
113
+ # caches from previous builds. This happened at least in the FreeBSD CI,
114
+ # where the build script didn't re-execute across builds.
115
+
116
+ rm -rf target
112
117
cargo test --no-default-features --manifest-path libc-test/Cargo.toml \
113
118
--target " ${TARGET} " ${LIBC_CI_ZBUILD_STD+" -Zbuild-std" }
114
119
120
+ rm -rf target
115
121
cargo test --manifest-path libc-test/Cargo.toml --target " ${TARGET} " ${LIBC_CI_ZBUILD_STD+" -Zbuild-std" }
116
122
123
+ rm -rf target
117
124
RUST_BACKTRACE=1 cargo test --features extra_traits --manifest-path libc-test/Cargo.toml \
118
125
--target " ${TARGET} " ${LIBC_CI_ZBUILD_STD+" -Zbuild-std" }
119
126
fi
You can’t perform that action at this time.
0 commit comments