Skip to content

Commit

Permalink
skip: add charmcraft cache
Browse files Browse the repository at this point in the history
  • Loading branch information
DnPlas committed Jul 30, 2024
1 parent 1ee9aac commit f360753
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/integrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,19 @@ jobs:
- name: Check out code
uses: actions/checkout@v3

- name: Setup Charmcraft's pip cache
id: cache
uses: actions/cache@v4
with:
path: /home/runner/snap/charmcraft/common/cache/charmcraft/
# Cache keys must be unique - there is no overwrite mechanic. Add IDs to avoid this (is there a better set of IDs?)
# partial ref: https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache
# To match the most recent previous cache, use restore-keys with the craft-shared-cache prefix. This will hit the
# "first" match, which will be from the most recent run.
# ref: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key
key: craft-shared-cache-${{ github.run_id }}-${{ github.run_attempt }}-${{ github.job }}-${{ strategy.job-index }}
restore-keys: craft-shared-cache

- name: Setup operator environment
uses: charmed-kubernetes/actions-operator@main
with:
Expand Down

0 comments on commit f360753

Please sign in to comment.