Skip to content

Commit

Permalink
Cache Rust dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
swsnr committed Dec 9, 2024
1 parent ad28021 commit 5041229
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,19 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
id: toolchain
with:
components: rustfmt, clippy
# See https://github.com/actions/cache/blob/main/examples.md#rust---cargo
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-rust-${{ steps.toolchain.outputs.cachekey }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: cargo fmt --check
- run: blueprint-compiler format resources/**/*.blp
# Make the glob work
Expand Down

0 comments on commit 5041229

Please sign in to comment.