summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorErlend E. Aasland <erlend.aasland@protonmail.com>2023-02-20 13:07:25 (GMT)
committerGitHub <noreply@github.com>2023-02-20 13:07:25 (GMT)
commit27136310414965a3ea7f835e416cf74b91cefb48 (patch)
tree0a33c4b9073825d320d8fa8b2efdbea0b39abf6a /.github
parentb1b375e2670a58fc37cb4c2629ed73b045159918 (diff)
downloadcpython-27136310414965a3ea7f835e416cf74b91cefb48.zip
cpython-27136310414965a3ea7f835e416cf74b91cefb48.tar.gz
cpython-27136310414965a3ea7f835e416cf74b91cefb48.tar.bz2
gh-101981: Build macOS as recommended by the devguide (GH-102070)
Automerge-Triggered-By: GH:erlend-aasland
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml13
1 files changed, 10 insertions, 3 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 97ea2d9..acc8d93 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -157,12 +157,19 @@ jobs:
PYTHONSTRICTEXTENSIONBUILD: 1
steps:
- uses: actions/checkout@v3
- - name: Prepare homebrew environment variables
+ - name: Install Homebrew dependencies
+ run: brew install pkg-config openssl@1.1 xz gdbm tcl-tk
+ - name: Prepare Homebrew environment variables
run: |
- echo "LDFLAGS=-L$(brew --prefix tcl-tk)/lib" >> $GITHUB_ENV
+ echo "CFLAGS=-I$(brew --prefix gdbm)/include -I$(brew --prefix xz)/include" >> $GITHUB_ENV
+ echo "LDFLAGS=-L$(brew --prefix gdbm)/lib -I$(brew --prefix xz)/lib" >> $GITHUB_ENV
echo "PKG_CONFIG_PATH=$(brew --prefix openssl@1.1)/lib/pkgconfig:$(brew --prefix tcl-tk)/lib/pkgconfig" >> $GITHUB_ENV
- name: Configure CPython
- run: ./configure --with-pydebug --prefix=/opt/python-dev
+ run: |
+ ./configure \
+ --with-pydebug \
+ --prefix=/opt/python-dev \
+ --with-openssl="$(brew --prefix openssl@1.1)"
- name: Build CPython
run: make -j4
- name: Display build info