Skip to content

Commit

Permalink
docs.yml: Cache cargo deps
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdewar committed Jun 6, 2024
1 parent 76fcbad commit a673e11
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,20 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Setup pages
uses: actions/configure-pages@v5
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Cargo Cache
uses: actions/cache@v4
with:
path: |
~/.cargo
target
key: ubuntu-latest-cargo-${{ hashFiles('Cargo.toml') }}
restore-keys: |
ubuntu-latest-cargo-${{ hashFiles('Cargo.toml') }}
ubuntu-latest-cargo
- name: Install mdBook
run: cargo install mdbook
- name: Build docs with mdBook
Expand Down

0 comments on commit a673e11

Please sign in to comment.