Skip to content

Commit

Permalink
Add cache to basic.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ismellike authored and Jake Hartnell committed Aug 14, 2024
1 parent 2c4db48 commit 3ff1cc7
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ jobs:
target: wasm32-unknown-unknown
override: true

- name: Rust Dependencies Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
artifacts/
key: ${{ runner.os }}-cargo-with-artifacts-${{ hashFiles('**/Cargo.lock') }}

- name: Run tests
uses: actions-rs/cargo@v1
with:
Expand Down Expand Up @@ -53,6 +64,17 @@ jobs:
override: true
components: rustfmt, clippy

- name: Rust Dependencies Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
artifacts/
key: ${{ runner.os }}-cargo-with-artifacts-${{ hashFiles('**/Cargo.lock') }}

- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
Expand Down

0 comments on commit 3ff1cc7

Please sign in to comment.