Skip to content

Commit

Permalink
add cargo doc to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hellow554 committed May 31, 2022
1 parent 4249b56 commit d052aa2
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
rust: stable-x86_64-gnu
steps:
- uses: actions/checkout@master
- name: Install Rust (rustup)
- name: Install Rust
run: |
rustup update ${{ matrix.rust }} --no-self-update
rustup default ${{ matrix.rust }}
Expand Down Expand Up @@ -60,6 +60,19 @@ jobs:
rustup component add rustfmt
- run: cargo fmt -- --check

doc:
name: Check Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install Rust
run: |
rustup update stable --no-self-update
rustup default stable
rustup component add rust-docs
- name: Run rustdoc
run: RUSTDOCFLAGS="-D warnings" cargo doc --verbose

features:
name: Feature check
runs-on: ubuntu-latest
Expand Down

0 comments on commit d052aa2

Please sign in to comment.