Skip to content

Commit 4b5728c

Browse files
committed
Check docs in Check job
1 parent a04b140 commit 4b5728c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
strategy:
5959
fail-fast: false
6060
matrix:
61-
target: ["aarch64-apple-ios", "aarch64-linux-android", "x86_64-apple-darwin", "x86_64-fuchsia", "x86_64-pc-windows-msvc", "x86_64-pc-solaris", "x86_64-unknown-illumos", "x86_64-unknown-linux-gnu", "x86_64-unknown-netbsd", "x86_64-unknown-redox"]
61+
target: ["aarch64-apple-ios", "aarch64-linux-android", "x86_64-apple-darwin", "x86_64-fuchsia", "x86_64-pc-windows-msvc", "x86_64-pc-solaris", "x86_64-unknown-freebsd", "x86_64-unknown-illumos", "x86_64-unknown-linux-gnu", "x86_64-unknown-netbsd", "x86_64-unknown-redox"]
6262
steps:
6363
- uses: actions/checkout@v3
6464
- name: Install Rust
@@ -69,6 +69,8 @@ jobs:
6969
uses: taiki-e/install-action@cargo-hack
7070
- name: Run check
7171
run: cargo hack check --feature-powerset --all-targets --examples --bins --tests --target ${{ matrix.target }}
72+
- name: Check docs for docs.rs
73+
run: RUSTDOCFLAGS="-D warnings --cfg docsrs" cargo doc --no-deps --all-features --target ${{ matrix.target }}
7274
Clippy:
7375
name: Clippy
7476
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)