File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,9 @@ test_target() {
32
32
n=0
33
33
until [ $n -ge $N ]
34
34
do
35
- rustup target add " ${TARGET} " --toolchain " ${RUST} " && break
35
+ if rustup target add " ${TARGET} " --toolchain " ${RUST} " ; then
36
+ break
37
+ fi
36
38
n=$(( n+ 1 ))
37
39
sleep 1
38
40
done
Original file line number Diff line number Diff line change @@ -38,8 +38,13 @@ while read -r target; do
38
38
esac
39
39
40
40
rustup target add " ${target} " || true
41
- xargo doc --target " ${target} " \
42
- --no-default-features --features extra_traits
41
+
42
+ # If cargo doc fails, then try xargo:
43
+ if ! cargo doc --target " ${target} " \
44
+ --no-default-features --features extra_traits ; then
45
+ xargo doc --target " ${target} " \
46
+ --no-default-features --features extra_traits
47
+ fi
43
48
44
49
cp -r " target/${target} /doc" " ${TARGET_DOC_DIR} /${target} "
45
50
You can’t perform that action at this time.
0 commit comments