Skip to content

Commit

Permalink
Merge pull request #515 from hellow554/doc_workflow
Browse files Browse the repository at this point in the history
add cargo doc to workflow
  • Loading branch information
KodrAus authored Jun 2, 2022
2 parents f3ff2d9 + e0e4fd7 commit 65cbb90
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 --all-features

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

0 comments on commit 65cbb90

Please sign in to comment.