Skip to content

Commit af3dfdf

Browse files
authored
fix(ci): move addition of brew libs to other step (#5220)
2 parents 164db65 + 8e43f33 commit af3dfdf

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/build.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -271,11 +271,6 @@ jobs:
271271
echo "${LLVM_DIR}/bin" >> $GITHUB_PATH
272272
env:
273273
LLVM_DIR: .llvm
274-
- name: Add `brew` libs to `RUSTFLAGS`
275-
if: matrix.metadata.os == 'macos-14'
276-
shell: bash
277-
run: |
278-
echo "RUSTFLAGS=-L/opt/homebrew/lib" >> $GITHUB_ENV
279274
- name: Configure LLVM (Windows)
280275
# The Custom Windows build does not contains llvm-config.exe, so need to setup manualy here
281276
if: startsWith(matrix.build, 'windows-x64') && matrix.llvm_url
@@ -286,6 +281,10 @@ jobs:
286281
echo LLVM_ENABLE=1 >> $GITHUB_ENV
287282
env:
288283
LLVM_DIR: .llvm
284+
- name: Add `brew` libraries (Apple Silicon)
285+
run: |
286+
echo "RUSTFLAGS=-L/opt/homebrew/lib" >> $GITHUB_ENV
287+
if: matrix.os == 'macos-14'
289288
- name: Set up dependencies for Mac OS
290289
run: |
291290
brew install automake

0 commit comments

Comments
 (0)