[3.12] CI: Move Homebrew dependencies into Brewfile (GH-148335) (GH-149884) (#149988)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Brett Cannon <brett@python.org>
This commit is contained in:
Miss Islington (bot) 2026-05-22 16:37:53 +02:00 committed by GitHub
parent ae9ebe4839
commit 7c999be49d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 1 deletions

View file

@ -45,7 +45,7 @@ jobs:
key: ${{ github.job }}-${{ env.IMAGE_OS_VERSION }}-${{ inputs.config_hash }}
- name: Install Homebrew dependencies
run: |
brew install pkg-config openssl@3.0 xz gdbm tcl-tk@8
brew bundle --file=Misc/Brewfile
# Because alternate versions are not symlinked into place by default:
brew link --overwrite tcl-tk@8
- name: Configure CPython

14
Misc/Brewfile Normal file
View file

@ -0,0 +1,14 @@
brew "gdbm"
brew "mpdecimal"
brew "openssl@3.0"
brew "pkg-config"
brew "tcl-tk@8"
brew "xz"
brew "zstd"
brew "bzip2" if OS.linux?
brew "libedit" if OS.linux?
brew "libffi" if OS.linux?
brew "ncurses" if OS.linux?
brew "unzip" if OS.linux?
brew "zlib-ng-compat" if OS.linux?