diff options
author | Ned Deily <nad@python.org> | 2023-06-05 06:23:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-05 06:23:32 (GMT) |
commit | c9bf00b1ad440077b28143693025bcba0d90f26e (patch) | |
tree | 6c847f8cbcb1d4002dbdff35bfe38865c852e2bb | |
parent | 89507d5378a4fdf805bd22860c16a4ce02c970b3 (diff) | |
download | cpython-c9bf00b1ad440077b28143693025bcba0d90f26e.zip cpython-c9bf00b1ad440077b28143693025bcba0d90f26e.tar.gz cpython-c9bf00b1ad440077b28143693025bcba0d90f26e.tar.bz2 |
[3.9] Update GitHub CI workflow for macOS. (GH-105303)
-rw-r--r-- | .github/workflows/build.yml | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f21cc35..c55eeaa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -147,11 +147,23 @@ jobs: needs: check_source if: needs.check_source.outputs.run_tests == 'true' env: + HOMEBREW_NO_ANALYTICS: 1 + HOMEBREW_NO_AUTO_UPDATE: 1 + HOMEBREW_NO_INSTALL_CLEANUP: 1 PYTHONSTRICTEXTENSIONBUILD: 1 steps: - uses: actions/checkout@v3 - name: Configure CPython - 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" + run: | + brew install pkg-config openssl@1.1 xz gdbm tcl-tk + CC=clang \ + CPPFLAGS="-I$(brew --prefix gdbm)/include -I$(brew --prefix xz)/include" \ + LDFLAGS="-L$(brew --prefix gdbm)/lib -L$(brew --prefix xz)/lib" \ + ./configure --prefix=/opt/python-dev \ + --with-pydebug \ + --with-openssl="$(brew --prefix openssl@1.1)" \ + --with-tcltk-libs="$(pkg-config --libs tk)" \ + --with-tcltk-includes="$(pkg-config --cflags tk)" - name: Build CPython run: make -j4 - name: Display build info |