Kubler Cache Inspect #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Kubler Cache Inspect | |
on: | |
workflow_dispatch: | |
jobs: | |
kubler-cache-inspect: | |
runs-on: ubuntu-latest | |
steps: | |
# Cache Versions are based off key and path, so differnt path's can use same key | |
# | |
# Caches are immutable, so need unique key to create a new cache | |
# `restore-keys` provides a list to restore a cache when key doesn't match | |
# If there's no exact match, the most recent cache that partially matches will be used | |
# | |
- name: Cache Kubler Downloads | |
uses: actions/cache@v3 | |
with: | |
path: ~/.kubler/downloads/ | |
key: kubler-${{ github.sha }} | |
restore-keys: | | |
kubler- | |
- name: Cache Kubler Gentoo Distfiles | |
uses: actions/cache@v3 | |
with: | |
path: ~/.kubler/distfiles/ | |
key: kubler-${{ github.sha }} | |
restore-keys: | | |
kubler- | |
- name: Cache Kubler Gentoo Packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.kubler/packages/ | |
key: kubler-${{ github.sha }} | |
restore-keys: | | |
kubler- | |
- name: Inspect Kubler Caches | |
run: | | |
tree -a -C ~/.kubler | |