Skip to content

Commit e3a9ff0

Browse files
committed
2.x: Update homebrew installation
1 parent d2ea92d commit e3a9ff0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/devel-colima-intel-macos.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ jobs:
1717
- uses: actions/checkout@v4
1818
with:
1919
ref: '2.x-devel'
20-
- name: Upgrade brew
20+
- name: Set up Homebrew
21+
id: set-up-homebrew
22+
uses: Homebrew/actions/setup-homebrew@master
23+
- name: Fix Python conflicts between macOS runner and Homebrew
2124
run: |
22-
rm -rf /usr/local/bin/2to3*
23-
brew update
24-
brew upgrade
25+
# see https://github.com/actions/setup-python/issues/577
26+
brew list -1 | grep python | while read formula; do brew unlink $formula; brew link --overwrite $formula; done
2527
- name: Install homebrew dependencies
2628
run: |
2729
set -x

0 commit comments

Comments
 (0)