ci: Check rustdocs build

Currently we are not failing the docs build in CI if any warnings are
generated.

Exit the script with error code 1 if docs build throws any warnings.
This commit is contained in:
Tobin C. Harding 2022-11-22 08:50:27 +11:00
parent d5065cc771
commit d5294a182a
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ fi
# Build the docs if told to (this only works with the nightly toolchain) # Build the docs if told to (this only works with the nightly toolchain)
if [ "$DO_DOCS" = true ]; then if [ "$DO_DOCS" = true ]; then
RUSTDOCFLAGS="--cfg docsrs" cargo rustdoc --features="$FEATURES" -- -D rustdoc::broken-intra-doc-links RUSTDOCFLAGS="--cfg docsrs" cargo rustdoc --features="$FEATURES" -- -D rustdoc::broken-intra-doc-links -D warnings || exit 1
fi fi
# Webassembly stuff # Webassembly stuff