Skip to content

Commit e0910a2

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

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
@@ -184,14 +184,15 @@ jobs:
184184
# This requires rustfmt, use stable.
185185
- name: Run semver-check
186186
run: cargo +stable run -p semver-check
187-
- run: |
187+
- name: Ensure intradoc links are valid
188+
run: cargo doc --workspace --document-private-items --no-deps
189+
env:
190+
RUSTDOCFLAGS: -D warnings
191+
- name: Install mdbook
192+
run: |
188193
mkdir mdbook
189194
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
190195
echo `pwd`/mdbook >> $GITHUB_PATH
191-
# TODO: should check all workspace members
192-
- run: cargo doc -p cargo --document-private-items --no-deps
193-
env:
194-
RUSTDOCFLAGS: -D warnings
195196
- run: cd src/doc && mdbook build --dest-dir ../../target/doc
196197
- name: Run linkchecker.sh
197198
run: |

0 commit comments

Comments
 (0)