Skip to content
Snippets Groups Projects
Commit a25a42be authored by gnzlbg's avatar gnzlbg
Browse files

Speed up documentation build by using cargo when possible

parent 575fdc8c
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,9 @@ test_target() {
n=0
until [ $n -ge $N ]
do
rustup target add "${TARGET}" --toolchain "${RUST}" && break
if rustup target add "${TARGET}" --toolchain "${RUST}" ; then
break
fi
n=$((n+1))
sleep 1
done
......
......@@ -38,8 +38,13 @@ while read -r target; do
esac
rustup target add "${target}" || true
xargo doc --target "${target}" \
--no-default-features --features extra_traits
# If cargo doc fails, then try xargo:
if ! cargo doc --target "${target}" \
--no-default-features --features extra_traits ; then
xargo doc --target "${target}" \
--no-default-features --features extra_traits
fi
cp -r "target/${target}/doc" "${TARGET_DOC_DIR}/${target}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment