Skip to content

Commit a90146a

Browse files
jturner314bluss
authored andcommitted
Add docs to CI
This is primarily to detect broken intra-doc links, which `cargo doc` warns about.
1 parent ba8f45c commit a90146a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,28 @@ jobs:
8585
- run: cargo careful test -Zcareful-sanitizer --features="$FEATURES"
8686
- run: cargo careful test -Zcareful-sanitizer -p ndarray-rand
8787

88+
docs:
89+
if: ${{ github.event_name == 'merge_group' }}
90+
runs-on: ubuntu-latest
91+
strategy:
92+
matrix:
93+
rust:
94+
- stable
95+
name: docs/${{ matrix.rust }}
96+
steps:
97+
- uses: actions/checkout@v4
98+
- uses: dtolnay/rust-toolchain@master
99+
with:
100+
toolchain: ${{ matrix.rust }}
101+
- run: cargo doc
102+
88103
conclusion:
89104
needs:
90105
- clippy
91106
- tests
92107
- cross_test
93108
- cargo-careful
109+
- docs
94110
if: always()
95111
runs-on: ubuntu-latest
96112
steps:

0 commit comments

Comments
 (0)