Skip to content

Commit dda246d

Browse files
committed
Use different cache for coverage
1 parent 5c81dc3 commit dda246d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/coverage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ jobs:
2323
uses: actions/cache@v4
2424
with:
2525
path: target
26-
key: ${{ runner.os }}-stable-build-target-${{ hashFiles('**/Cargo.lock') }}
27-
restore-keys: ${{ runner.os }}-stable-build-target-
26+
key: ${{ runner.os }}-stable-coverage-build-target-${{ hashFiles('**/Cargo.lock') }}
27+
restore-keys: ${{ runner.os }}-stable-coverage-build-target-
2828

2929
- name: Generate code coverage
3030
run: |
31-
cargo tarpaulin --all-features --workspace --timeout 120 --out xml
31+
cargo tarpaulin --all-features --skip-clean --workspace --timeout 120 --out xml
3232
3333
- name: Upload to codecov.io
3434
uses: codecov/codecov-action@v5

.github/workflows/rust-audit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
uses: actions/cache@v4
2323
with:
2424
path: target
25-
key: ${{ runner.os }}-{{ matrix.rust }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
25+
key: ${{ runner.os }}-stable-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
2626

2727
- uses: actions/checkout@v4
2828
with:

0 commit comments

Comments
 (0)