Skip to content

Commit f56112b

Browse files
committed
CI: Cargo doc for both pre and post v2
1 parent 781ed8a commit f56112b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,14 @@ jobs:
401401
402402
pushd $src
403403
rm -f .cargo/config
404-
cargo doc || cargo doc --features timer-queue
404+
# Version 1 and below uses cargo doc directly
405+
if [[ $ver -gt 1 ]]
406+
then
407+
# Version 2 and above
408+
cargo xtask doc
409+
else
410+
cargo doc || cargo doc --features timer-queue
411+
fi
405412
mkdir -p $webroot/$ver/book
406413
cp -r target/doc $webroot/$ver/api
407414

0 commit comments

Comments
 (0)