Skip to content

Commit

Permalink
Fetch latest brew formulae (p4lang#4488)
Browse files Browse the repository at this point in the history
* Fetch latest brew formulae

* Proper grab brew cache dir
  • Loading branch information
asl authored Feb 29, 2024
1 parent 098ea24 commit d56f93b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,18 @@ jobs:
key: test-${{ runner.os }}
max-size: 1000M

- name: Get brew cache dir
id: brew-cache
run: |
echo "dir=$(brew --prefix)" >> $GITHUB_OUTPUT
- name: Cache Homebrew Packages
id: cache-homebrew-packages
uses: actions/cache@v4
env:
cache-name: homebrew-packages
with:
path: $(brew --prefix)
path: ${{ steps.brew-cache.outputs.dir }}
key: ${{ runner.os }}-m1-${{ hashFiles('tools/install_mac_deps.sh') }}

- name: Install dependencies (MacOS)
Expand Down Expand Up @@ -170,13 +175,18 @@ jobs:
key: test-${{ runner.os }}
max-size: 1000M

- name: Get brew cache dir
id: brew-cache
run: |
echo "dir=$(brew --prefix)" >> $GITHUB_OUTPUT
- name: Cache Homebrew Packages
id: cache-homebrew-packages
uses: actions/cache@v4
env:
cache-name: homebrew-packages
with:
path: $(brew --prefix)
path: ${{ steps.brew-cache.outputs.dir }}
key: ${{ runner.os }}-${{ hashFiles('tools/install_mac_deps.sh') }}

- name: Install dependencies (MacOS)
Expand Down
2 changes: 2 additions & 0 deletions tools/install_mac_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ if ! which brew > /dev/null 2>&1; then
fi
HOMEBREW_PREFIX=$(brew --prefix)

# Fetch the latest formulae
brew update

BOOST_LIB="[email protected]"
REQUIRED_PACKAGES=(
Expand Down

0 comments on commit d56f93b

Please sign in to comment.