Skip to content

Commit 76e498f

Browse files
committed
Auto merge of #12025 - weihanglo:ci2, r=epage
CI: ensure intra links for all members are checked
2 parents 3862b01 + 77e82ee commit 76e498f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,14 +186,15 @@ jobs:
186186
# This requires rustfmt, use stable.
187187
- name: Run semver-check
188188
run: cargo +stable run -p semver-check
189-
- run: |
189+
- name: Ensure intradoc links are valid
190+
run: cargo doc --workspace --document-private-items --no-deps
191+
env:
192+
RUSTDOCFLAGS: -D warnings
193+
- name: Install mdbook
194+
run: |
190195
mkdir mdbook
191196
curl -Lf https://github.com/rust-lang/mdBook/releases/download/v0.4.27/mdbook-v0.4.27-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
192197
echo `pwd`/mdbook >> $GITHUB_PATH
193-
# TODO: should check all workspace members
194-
- run: cargo doc -p cargo --document-private-items --no-deps
195-
env:
196-
RUSTDOCFLAGS: -D warnings
197198
- run: cd src/doc && mdbook build --dest-dir ../../target/doc
198199
- name: Run linkchecker.sh
199200
run: |

0 commit comments

Comments
 (0)