ci: run linkchekcer from target dir

This helps us remove `src/doc` from `exclude` list in Cargo.toml
This commit is contained in:
Weihang Lo 2023-04-19 22:24:38 +01:00
parent ff216ebc96
commit 3b8d744b44
No known key found for this signature in database
GPG key ID: D7DBF189825E82E7

View file

@ -196,11 +196,11 @@ jobs:
env:
RUSTDOCFLAGS: -D warnings
- run: cd src/doc && mdbook build --dest-dir ../../target/doc
- run: |
cd src/doc
curl -sSLo linkcheck.sh \
https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh
sh linkcheck.sh --all cargo
- name: Run linkchecker.sh
run: |
cd target
curl -sSLO https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh
sh linkcheck.sh --all --path ../src/doc cargo
success:
permissions: