Skip to content

Commit 7d07872

Browse files
committed
ci: run linkchekcer from target dir
This helps us remove `src/doc` from `exclude` list in Cargo.toml
1 parent 8dc64ce commit 7d07872

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,11 @@ jobs:
196196
env:
197197
RUSTDOCFLAGS: -D warnings
198198
- run: cd src/doc && mdbook build --dest-dir ../../target/doc
199-
- run: |
200-
cd src/doc
201-
curl -sSLo linkcheck.sh \
202-
https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh
203-
sh linkcheck.sh --all cargo
199+
- name: Run linkchecker.sh
200+
run: |
201+
cd target
202+
curl -sSLO https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh
203+
sh linkcheck.sh --all --path ../src/doc cargo
204204
205205
success:
206206
permissions:

0 commit comments

Comments
 (0)