Skip to content

Commit 511f27c

Browse files
authored
[Rosetta on ARM macOS Runner] Fix Python3 Homebrew link
1 parent d19285a commit 511f27c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/rosetta-on-arm-macos-runner.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ jobs:
2323
- name: Install x86_64 Homebrew
2424
run: |
2525
/usr/bin/arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
26-
- name: Install LLVm from x86_64 Homebrew
26+
- name: Install LLVM from x86_64 Homebrew
27+
continue-on-error: true # Allow this as Python (installed as LLVM dependency) should fail when Homebrew links it.
2728
run: |
28-
/usr/bin/arch -x86_64 /usr/local/bin/brew install --force llvm
29+
/usr/bin/arch -x86_64 /usr/local/bin/brew install llvm
30+
- name: Force link Python installed from x86_64 Homebrew
31+
run: |
32+
/usr/bin/arch -x86_64 /usr/local/bin/brew link --overwrite python3

0 commit comments

Comments
 (0)