Skip to content

Commit 575fdc8

Browse files
committed
Do not try to build documentation for apple targets from Linux
1 parent 7017701 commit 575fdc8

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

ci/dox.sh

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,25 @@ rm $PLATFORM_SUPPORT || true
2525
printf '### Platform-specific documentation\n' >> $PLATFORM_SUPPORT
2626

2727
while read -r target; do
28-
echo "documenting ${target}"
28+
echo "documenting ${target}"
2929

30-
rustup target add "${target}" || true
31-
xargo doc --target "${target}" \
32-
--no-default-features --features extra_traits
30+
case "${target}" in
31+
*apple*)
32+
# FIXME:
33+
# We can't build docs of apple targets from Linux yet.
34+
continue
35+
;;
36+
*)
37+
;;
38+
esac
3339

34-
cp -r "target/${target}/doc" "${TARGET_DOC_DIR}/${target}"
40+
rustup target add "${target}" || true
41+
xargo doc --target "${target}" \
42+
--no-default-features --features extra_traits
3543

36-
echo "* [${target}](${target}/libc/index.html)" >> $PLATFORM_SUPPORT
44+
cp -r "target/${target}/doc" "${TARGET_DOC_DIR}/${target}"
45+
46+
echo "* [${target}](${target}/libc/index.html)" >> $PLATFORM_SUPPORT
3747
done < targets
3848

3949
# Replace <div class="platform_support"></div> with the contents of $PLATFORM_SUPPORT

0 commit comments

Comments
 (0)