Skip to content

Commit

Permalink
Add a cache.
Browse files Browse the repository at this point in the history
  • Loading branch information
fruffy committed Feb 27, 2024
1 parent 8e8d361 commit df541a3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,15 @@ jobs:
key: test-${{ runner.os }}
max-size: 1000M

- name: Cache Homebrew Packages
id: cache-homebrew-packages
uses: actions/cache@v4
env:
cache-name: homebrew-packages
with:
path: $(brew --prefix)
key: ${{ runner.os }}-${{ hashFiles('tools/install_mac_deps.sh') }}

- name: Install dependencies (MacOS)
run: |
tools/install_mac_deps.sh
Expand Down Expand Up @@ -161,6 +170,15 @@ jobs:
key: test-${{ runner.os }}
max-size: 1000M

- name: Cache Homebrew Packages
id: cache-homebrew-packages
uses: actions/cache@v4
env:
cache-name: homebrew-packages
with:
path: $(brew --prefix)
key: ${{ runner.os }}-${{ hashFiles('tools/install_mac_deps.sh') }}

- name: Install dependencies (MacOS)
run: |
tools/install_mac_deps.sh
Expand Down

0 comments on commit df541a3

Please sign in to comment.