Skip to content

Commit

Permalink
ci: add restore-keys to Github Actions cache config
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsgruk committed Nov 11, 2024
1 parent 816d91a commit d14d8c5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ jobs:
with:
path: /home/runner/snap/charmcraft/common/cache/charmcraft
key: ${{ runner.os }}-wheel-cache-${{ hashFiles('./uv.lock') }}
# If the above cache key doesn't match, it's because the uv.lock has changed.
# Even so, pre-existing caches may still contain useful cached builds for some
# portion of the dependencies, and restore-keys can partially match a cache.
restore-keys: |
${{ runner.os }}-wheel-cache-
- name: Pack charm
run: charmcraft pack -v
Expand Down

0 comments on commit d14d8c5

Please sign in to comment.