Skip to content

Commit e1b81b4

Browse files
committed
Update GitHub CI workflow for macOS.
1 parent d958960 commit e1b81b4

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,24 @@ jobs:
126126
runs-on: macos-latest
127127
needs: check_source
128128
if: needs.check_source.outputs.run_tests == 'true'
129+
env:
130+
HOMEBREW_NO_ANALYTICS: 1
131+
HOMEBREW_NO_AUTO_UPDATE: 1
132+
HOMEBREW_NO_INSTALL_CLEANUP: 1
129133
steps:
130134
- uses: actions/checkout@v2
131135
- name: Configure CPython
132-
run: SDKROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk ./configure --with-pydebug --with-openssl=/usr/local/opt/openssl --prefix=/opt/python-dev
136+
run: |
137+
brew install pkg-config openssl@1.1 xz gdbm tcl-tk
138+
SDKROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk \
139+
CC=clang \
140+
CPPFLAGS="-I$(brew --prefix gdbm)/include -I$(brew --prefix xz)/include" \
141+
LDFLAGS="-L$(brew --prefix gdbm)/lib -L$(brew --prefix xz)/lib" \
142+
./configure --prefix=/opt/python-dev \
143+
--with-pydebug \
144+
--with-openssl="$(brew --prefix openssl@1.1)" \
145+
--with-tcltk-libs="$(pkg-config --libs tk)" \
146+
--with-tcltk-includes="$(pkg-config --cflags tk)"
133147
- name: Build CPython
134148
run: make -j4
135149
- name: Display build info

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy