Skip to content

Commit 5aa9d55

Browse files
CI: Build macOS as recommended by the devguide
1 parent b1b375e commit 5aa9d55

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,20 @@ jobs:
157157
PYTHONSTRICTEXTENSIONBUILD: 1
158158
steps:
159159
- uses: actions/checkout@v3
160-
- name: Prepare homebrew environment variables
160+
- name: Install Homebrew dependencies
161+
run: brew install pkg-config [email protected] xz gdbm tcl-tk
162+
- name: Prepare Homebrew environment variables
161163
run: |
162-
echo "LDFLAGS=-L$(brew --prefix tcl-tk)/lib" >> $GITHUB_ENV
164+
echo "CFLAGS=\"-I$(brew --prefix gdbm)/include -I$(brew --prefix xz)/include\"" >> $GITHUB_ENV
165+
echo "LDFLAGS=\"-L$(brew --prefix gdbm)/lib -I$(brew --prefix xz)/lib\"" >> $GITHUB_ENV
166+
echo "PKG_CONFIG_PATH=\"$(brew --prefix tcl-tk)/lib/pkgconfig\"" >> $GITHUB_ENV
163167
echo "PKG_CONFIG_PATH=$(brew --prefix [email protected])/lib/pkgconfig:$(brew --prefix tcl-tk)/lib/pkgconfig" >> $GITHUB_ENV
164168
- name: Configure CPython
165-
run: ./configure --with-pydebug --prefix=/opt/python-dev
169+
run: |
170+
./configure \
171+
--with-pydebug \
172+
--prefix=/opt/python-dev \
173+
--with-openssl="$(brew --prefix [email protected])"
166174
- name: Build CPython
167175
run: make -j4
168176
- name: Display build info

0 commit comments

Comments
 (0)