mirror of
https://github.com/rust-lang/cargo
synced 2024-08-27 19:29:21 +00:00
ci: run linkchekcer from target dir
This helps us remove `src/doc` from `exclude` list in Cargo.toml
This commit is contained in:
parent
ff216ebc96
commit
3b8d744b44
10
.github/workflows/main.yml
vendored
10
.github/workflows/main.yml
vendored
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue