aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorHenrik Tjäder <henrik@tjaders.com>2023-05-31 21:21:29 +0200
committerHenrik Tjäder <henrik@tjaders.com>2023-05-31 21:22:34 +0200
commitf56112b688052800880c3aaa796cdbc306ad90bb (patch)
treed7283cfba5384439cc807dfa9c403e8620db19fd /.github/workflows
parent781ed8a9cdbb72ab639e73f52219b7d96fa6ec86 (diff)
CI: Cargo doc for both pre and post v2
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml9
1 files changed, 8 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 5cb794b..719f84b 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -401,7 +401,14 @@ jobs:
pushd $src
rm -f .cargo/config
- cargo doc || cargo doc --features timer-queue
+ # 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
+ fi
mkdir -p $webroot/$ver/book
cp -r target/doc $webroot/$ver/api