Skip to content

Commit

Permalink
feat: add doc job
Browse files Browse the repository at this point in the history
  • Loading branch information
BD103 committed Aug 30, 2024
1 parent e7d3b37 commit 9ecf310
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,24 @@ jobs:

- name: Run rustfmt
run: cargo fmt --all --check

docs:
name: Build docs
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
components: ${{ env.RUST_COMPONENTS }}

- name: Cache build artifacts
uses: Leafwing-Studios/cargo-cache@v2
with:
sweep-cache: true

- name: Build documentation
run: cargo doc --workspace --all-features --document-private-items --no-deps

0 comments on commit 9ecf310

Please sign in to comment.