Skip to content

Commit

Permalink
Reinstall Colima dependencies when restoring cache (#8)
Browse files Browse the repository at this point in the history
Caching & restoring QEMU is complicated because it has many other dependencies. 

With some improved bash-fu we could cache them all, but this is an improvement for the future. 

So we will spend some extra time to reinstall all dependencies from Colima that are missing. This will ensure everything needed is properly installed.
  • Loading branch information
humdrum authored Aug 10, 2023
1 parent ad3ed44 commit d97e23b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ runs:
${{ env.BREW_CELLAR }}/docker-compose
key: brew-${{ hashFiles('.github/brew-*') }}
restore-keys: brew-${{ hashFiles('.github/brew-*') }}
- name: Install packages that depends on Colima restored from cache
if: ${{ steps.homebrew-cache.outputs.cache-hit == 'true' }}
run: brew install --only-dependencies colima
shell: bash
- name: Relink Docker client, Docker Compose, and Colima
if: ${{ steps.homebrew-cache.outputs.cache-hit == 'true' }}
run: |
Expand Down

0 comments on commit d97e23b

Please sign in to comment.