@@ -190,12 +190,19 @@ jobs:
190190PYTHONSTRICTEXTENSIONBUILD :1
191191steps :
192192 -uses :actions/checkout@v3
193- -name :Prepare homebrew environment variables
193+ -name :Install Homebrew dependencies
194+ run :brew install pkg-config openssl@1.1 xz gdbm tcl-tk
195+ -name :Prepare Homebrew environment variables
194196run :|
195- echo "LDFLAGS=-L$(brew --prefix tcl-tk)/lib" >> $GITHUB_ENV
197+ echo "CFLAGS=-I$(brew --prefix gdbm)/include -I$(brew --prefix xz)/include" >> $GITHUB_ENV
198+ echo "LDFLAGS=-L$(brew --prefix gdbm)/lib -I$(brew --prefix xz)/lib" >> $GITHUB_ENV
196199 echo "PKG_CONFIG_PATH=$(brew --prefix openssl@1.1)/lib/pkgconfig:$(brew --prefix tcl-tk)/lib/pkgconfig" >> $GITHUB_ENV
197200 -name :Configure CPython
198- run :./configure --with-pydebug --prefix=/opt/python-dev
201+ run :|
202+ ./configure \
203+ --with-pydebug \
204+ --prefix=/opt/python-dev \
205+ --with-openssl="$(brew --prefix openssl@1.1)"
199206 -name :Build CPython
200207run :make -j4
201208 -name :Display build info