Skip to content

Commit

Permalink
Use githubs caching
Browse files Browse the repository at this point in the history
  • Loading branch information
JustusAdam committed Jul 26, 2023
1 parent 7d7957a commit 5a51cba
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,16 @@ jobs:
steps:
- uses: actions/checkout@v3
# just triggers rustup to download the toolchain
- run: cargo --help
- uses: Swatinem/rust-cache@v2
- name: Cache Toolchain
uses: actions/cache@v3
with:
path: ~/.rustup
key: ${{ runner.os }}-${{ hashFiles('rust-toolchain.toml') }}
- name: Cache Dependencies
uses: actions/cache@v3
with:
path: target
key: ${{ runner.os }}-${{ hashFiles('Cargo.lock', 'rust-toolchain.toml') }}
- name: Build
run: cargo build --verbose
- name: Run tests
Expand Down

0 comments on commit 5a51cba

Please sign in to comment.