ci: verify docs syntax
This commit is contained in:
parent
dae9de9068
commit
1004246bfe
1 changed files with 26 additions and 2 deletions
28
.github/workflows/ci.yml
vendored
28
.github/workflows/ci.yml
vendored
|
@ -86,7 +86,7 @@ jobs:
|
||||||
args: ${{matrix.features}}
|
args: ${{matrix.features}}
|
||||||
|
|
||||||
no-std:
|
no-std:
|
||||||
name: build ${{matrix.toolchain}} no-std for wasm32-unknown-unknown
|
name: build ${{matrix.toolchain}} no-std for wasm32-unknown-unknown
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
@ -106,4 +106,28 @@ jobs:
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: build
|
command: build
|
||||||
args: --no-default-features --target wasm32-unknown-unknown
|
args: --no-default-features --target wasm32-unknown-unknown
|
||||||
|
|
||||||
|
docs:
|
||||||
|
name: Verify the docs on ${{matrix.toolchain}}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
toolchain: [stable]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- name: Install rust
|
||||||
|
uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: ${{matrix.toolchain}}
|
||||||
|
override: true
|
||||||
|
- name: Check docs
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
env:
|
||||||
|
RUSTDOCFLAGS: -D warnings
|
||||||
|
with:
|
||||||
|
command: doc
|
||||||
|
args: --verbose --all-features --keep-going
|
||||||
|
|
Loading…
Add table
Reference in a new issue