mirror of
https://github.com/techno-tim/k3s-ansible.git
synced 2025-12-28 03:32:41 +01:00
fix(ci): adjusting cache steps
This commit is contained in:
5
.github/workflows/cache.yml
vendored
5
.github/workflows/cache.yml
vendored
@@ -53,19 +53,18 @@ jobs:
|
||||
with:
|
||||
path: |
|
||||
~/Library/Caches/Homebrew
|
||||
key: brew-${{ hashFiles('.github/brew-formulae') }}
|
||||
key: brew-${{ hashFiles('./Brewfile') }}
|
||||
restore-keys: brew-
|
||||
|
||||
- name: Update Homebrew
|
||||
if: steps.cache-homebrew.outputs.cache-hit != 'true' # only run if false since this is just a cache step
|
||||
run: |
|
||||
brew update --preinstall
|
||||
echo ${{ hashFiles ('"$(brew --repository)"') }} > .github/brew-formulae
|
||||
|
||||
- name: Install Homebrew dependencies
|
||||
if: steps.cache-homebrew.outputs.cache-hit != 'true' # only run if false since this is just a cache step
|
||||
run: |
|
||||
env HOMEBREW_NO_AUTO_UPDATE=1 brew install --cask virtualbox vagrant vagrant-manager
|
||||
env HOMEBREW_NO_AUTO_UPDATE=1 brew bundle --file ./Brewfile
|
||||
|
||||
- name: Cache Vagrant boxes
|
||||
id: cache-vagrant
|
||||
|
||||
Reference in New Issue
Block a user