Add docs build to CI
This should avoid accidentally breaking docs.
This commit is contained in:
parent
1b1c271531
commit
4fafc34869
|
@ -35,6 +35,23 @@ jobs:
|
|||
override: true
|
||||
- name: Run Tests
|
||||
run: cargo test
|
||||
docs:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
RUSTDOCFLAGS: -Dwarnings
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install Rust Nightly
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
override: true
|
||||
components: rust-docs
|
||||
- name: Check docs
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: doc
|
||||
args: --workspace --no-deps
|
||||
bench:
|
||||
name: Bench ${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
|
Loading…
Reference in New Issue