Skip to content

Commit 10a1fa4

Browse files
authored
Tweak docs CI job (#1451)
1 parent 890ad8b commit 10a1fa4

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,24 @@ jobs:
1313
check-doc:
1414
name: Check doc
1515
runs-on: ubuntu-latest
16+
env:
17+
RUSTDOCFLAGS: "-Dwarnings --cfg docsrs -Zunstable-options --generate-link-to-definition"
1618
steps:
1719
- uses: actions/checkout@v4
1820
- name: Install toolchain
19-
uses: dtolnay/rust-toolchain@nightly
20-
- run: cargo install cargo-deadlinks
21-
- name: doc (rand)
22-
env:
23-
RUSTDOCFLAGS: --cfg doc_cfg
24-
# --all builds all crates, but with default features for other crates (okay in this case)
25-
run: cargo deadlinks --ignore-fragments -- --all --features nightly,serde1,getrandom,small_rng
21+
uses: dtolnay/rust-toolchain@master
22+
with:
23+
toolchain: nightly
24+
- name: rand
25+
run: cargo doc --all-features --no-deps
26+
- name: rand_core
27+
run: cargo doc --all-features --package rand_core --no-deps
28+
- name: rand_distr
29+
run: cargo doc --all-features --package rand_distr --no-deps
30+
- name: rand_chacha
31+
run: cargo doc --all-features --package rand_chacha --no-deps
32+
- name: rand_pcg
33+
run: cargo doc --all-features --package rand_pcg --no-deps
2634

2735
test:
2836
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)