Update GitHub Actions cargo caching

To reflect latest example config given by actions/cache.
This commit is contained in:
Oliver Hamlet
2022-09-15 22:06:35 +01:00
parent 6164c6b8e6
commit f6c64deb55
+10 -6
View File
@@ -27,9 +27,11 @@ jobs:
- uses: actions/cache@v2 - uses: actions/cache@v2
with: with:
path: | path: |
~/.cargo/registry ~/.cargo/bin/
~/.cargo/git ~/.cargo/registry/index/
target ~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Prepare test resources - name: Prepare test resources
@@ -83,9 +85,11 @@ jobs:
- uses: actions/cache@v2 - uses: actions/cache@v2
with: with:
path: | path: |
~/.cargo/registry ~/.cargo/bin/
~/.cargo/git ~/.cargo/registry/index/
target ~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Tarpaulin - name: Install Tarpaulin