CI: Cargo doc for both pre and post v2

This commit is contained in:
Henrik Tjäder 2023-05-31 21:21:29 +02:00
parent 781ed8a9cd
commit f56112b688

View file

@ -401,7 +401,14 @@ jobs:
pushd $src pushd $src
rm -f .cargo/config rm -f .cargo/config
# Version 1 and below uses cargo doc directly
if [[ $ver -gt 1 ]]
then
# Version 2 and above
cargo xtask doc
else
cargo doc || cargo doc --features timer-queue cargo doc || cargo doc --features timer-queue
fi
mkdir -p $webroot/$ver/book mkdir -p $webroot/$ver/book
cp -r target/doc $webroot/$ver/api cp -r target/doc $webroot/$ver/api