only cache Homebrew's cache, not the git repo

On newer macOS images, restoring Homebrew's git repo doesn't work
correctly.
This commit is contained in:
Christopher Willis-Ford 2022-02-22 10:20:38 -08:00
parent 8c0ae87f89
commit 2af19f9cc4

View file

@ -55,7 +55,7 @@ jobs:
# than a minute most of the time. The cache will expire periodically and be replaced by a more up-to-date
# cache, which should effectively cap the amount of updating that Homebrew needs to do on top of the cache.
name: Restore Homebrew cache
key: homebrew-cache-v1
key: homebrew-cache-v2
- run:
name: Work around electron-userland/electron-builder#4964
command: |
@ -68,8 +68,8 @@ jobs:
name: Save Homebrew cache
paths:
- ~/Library/Caches/Homebrew
- /usr/local/Homebrew
key: homebrew-cache-v1
- /Library/Caches/Homebrew
key: homebrew-cache-v2
- build
- run:
name: Move DMG to artifacts directory