Skip to content

Commit c9bf00b

Browse files
authored
[3.9] Update GitHub CI workflow for macOS. (GH-105303)
1 parent 89507d5 commit c9bf00b

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/build.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,23 @@ jobs:
147147
needs: check_source
148148
if: needs.check_source.outputs.run_tests == 'true'
149149
env:
150+
HOMEBREW_NO_ANALYTICS: 1
151+
HOMEBREW_NO_AUTO_UPDATE: 1
152+
HOMEBREW_NO_INSTALL_CLEANUP: 1
150153
PYTHONSTRICTEXTENSIONBUILD: 1
151154
steps:
152155
- uses: actions/checkout@v3
153156
- name: Configure CPython
154-
run: ./configure --with-pydebug --with-openssl=/usr/local/opt/openssl --prefix=/opt/python-dev --with-tcltk-includes=-I$(brew --prefix tcl-tk)/include --with-tcltk-libs="-L$(brew --prefix tcl-tk)/lib -ltcl8.6 -ltk8.6"
157+
run: |
158+
brew install pkg-config [email protected] xz gdbm tcl-tk
159+
CC=clang \
160+
CPPFLAGS="-I$(brew --prefix gdbm)/include -I$(brew --prefix xz)/include" \
161+
LDFLAGS="-L$(brew --prefix gdbm)/lib -L$(brew --prefix xz)/lib" \
162+
./configure --prefix=/opt/python-dev \
163+
--with-pydebug \
164+
--with-openssl="$(brew --prefix [email protected])" \
165+
--with-tcltk-libs="$(pkg-config --libs tk)" \
166+
--with-tcltk-includes="$(pkg-config --cflags tk)"
155167
- name: Build CPython
156168
run: make -j4
157169
- name: Display build info

0 commit comments

Comments
 (0)