mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-25 21:19:35 +01:00
CI: Cargo doc for both pre and post v2
This commit is contained in:
parent
781ed8a9cd
commit
f56112b688
1 changed files with 8 additions and 1 deletions
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
|
@ -401,7 +401,14 @@ jobs:
|
||||||
|
|
||||||
pushd $src
|
pushd $src
|
||||||
rm -f .cargo/config
|
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
|
mkdir -p $webroot/$ver/book
|
||||||
cp -r target/doc $webroot/$ver/api
|
cp -r target/doc $webroot/$ver/api
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue