Skip to content

Commit

Permalink
fix(ci): Use specific step to install homebrew libs to apple silicon …
Browse files Browse the repository at this point in the history
…only
  • Loading branch information
xdoardo committed Nov 6, 2024
1 parent 85e84e9 commit 8e43f33
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -281,13 +281,16 @@ jobs:
echo LLVM_ENABLE=1 >> $GITHUB_ENV
env:
LLVM_DIR: .llvm
- name: Add `brew` libraries (Apple Silicon)
run: |
echo "RUSTFLAGS=-L/opt/homebrew/lib" >> $GITHUB_ENV
if: matrix.os == 'macos-14'
- name: Set up dependencies for Mac OS
run: |
brew install automake
# using gnu-tar is a workaround for https://github.com/actions/cache/issues/403
brew install gnu-tar
echo PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH" >> $GITHUB_ENV
echo "RUSTFLAGS=-L/opt/homebrew/lib" >> $GITHUB_ENV
if: startsWith(matrix.os, 'macos')
- uses: actions/cache@v2
with:
Expand Down

0 comments on commit 8e43f33

Please sign in to comment.