Skip to content

Commit f2d20d4

Browse files
committed
fix: simplify github cache
1 parent c5c162d commit f2d20d4

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.github/workflows/coverage.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ jobs:
2020
run: apt update && apt install -y lcov
2121
- name: Restore coverage cache
2222
id: c3-cov-cache-restore
23-
uses: actions/cache/restore@v4
23+
uses: actions/cache@v4
2424
with:
2525
path: ~/.cache/bazel
26-
key: c3-noble-bazel-cov-cache-${{ github.ref_name }}
26+
key: c3-bazel-cov-cache-${{ github.ref_name }}
2727
restore-keys: |
28-
c3-noble-bazel-cov-cache-
28+
c3-noble-bazel-cov-cache-${{ github.ref_name }}
29+
c3-bazel-cov-cache-
2930
- name: Generate Coverage
3031
run: bazel coverage
3132
--combined_report=lcov
@@ -41,11 +42,4 @@ jobs:
4142
artifact-name: noble-code-coverage-report
4243
github-token: ${{ secrets.GITHUB_TOKEN }}
4344
update-comment: true
44-
- name: Save coverage cache
45-
id: c3-cov-cache-save
46-
if: always() && !cancelled() && steps.c3-cov-cache-restore.outputs.cache-hit != 'true'
47-
uses: actions/cache/save@v4
48-
with:
49-
key: ${{ steps.c3-cov-cache-restore.outputs.cache-primary-key }}
50-
path: ~/.cache/bazel
5145
- run: echo "🍏 This job's status is ${{ job.status }}."

0 commit comments

Comments
 (0)