More caching

This commit is contained in:
Joel Wachsler 2022-07-11 02:16:38 +02:00
parent 14e09d74a1
commit 7f7c372e59
2 changed files with 8 additions and 2 deletions

View File

@ -19,7 +19,7 @@ jobs:
- uses: actions/cache@v2 - uses: actions/cache@v2
with: with:
path: ~/.cargo/registry path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('Cargo.lock') }} key: ${{ runner.os }}-cargo-test-${{ hashFiles('Cargo.lock') }}
- name: Install latest stable - name: Install latest stable
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
@ -57,6 +57,11 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: actions/cache@v2
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-clippy-${{ hashFiles('Cargo.lock') }}
- name: Install latest stable - name: Install latest stable
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:

View File

@ -8,10 +8,11 @@ jobs:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: actions/cache@v2 - uses: actions/cache@v2
with: with:
path: ~/.cargo/registry path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('Cargo.lock') }} key: ${{ runner.os }}-cargo-release-${{ hashFiles('Cargo.lock') }}
- name: Install latest stable - name: Install latest stable
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1