Skip to content

Commit

Permalink
feat: use restore-key
Browse files Browse the repository at this point in the history
  • Loading branch information
rikuson committed May 26, 2024
1 parent db583b1 commit 565869a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,24 @@ jobs:
with:
path: /Library/Ruby/Gems
key: cui-${{ runner.os }}-gem-${{ hashFiles('install.sh') }}
restore-keys: |
cui-${{ runner.os }}-gem-
- name: Cache homebrew
uses: actions/cache@v4
with:
path: |
/usr/local/Cellar
/Users/runner/Library/Caches/Homebrew
key: cui-${{ runner.os }}-homebrew-packages-${{ hashFiles('install.sh', 'roles/*/tasks/homebrew.yml') }}
restore-keys: |
cui-${{ runner.os }}-homebrew-packages-
- name: Cache asdf
uses: actions/cache@v4
with:
path: /Users/runner/.asdf
key: cui-${{ runner.os }}-asdf-${{ hashFiles('install.sh') }}
restore-keys: |
cui-${{ runner.os }}-asdf-
- name: Relink homebrew
run: brew link --overwrite ansible || true
- name: Install
Expand All @@ -48,18 +54,24 @@ jobs:
with:
path: /Library/Ruby/Gems
key: os-${{ runner.os }}-gem-${{ hashFiles('install.sh') }}
restore-keys: |
os-${{ runner.os }}-gem-
- name: Cache homebrew
uses: actions/cache@v4
with:
path: |
/usr/local/Cellar
/Users/runner/Library/Caches/Homebrew
key: os-${{ runner.os }}-homebrew-packages-${{ hashFiles('install.sh', 'roles/*/tasks/homebrew.yml') }}
restore-keys: |
os-${{ runner.os }}-homebrew-packages-
- name: Cache asdf
uses: actions/cache@v4
with:
path: /Users/runner/.asdf
key: os-${{ runner.os }}-asdf-${{ hashFiles('install.sh') }}
restore-keys: |
os-${{ runner.os }}-asdf-
- name: Relink homebrew
run: brew link --overwrite ansible || true
- name: Install
Expand Down

0 comments on commit 565869a

Please sign in to comment.