diff options
author | Ned Deily <nad@python.org> | 2023-06-05 02:11:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-05 02:11:31 -0400 |
commit | b28acfa396efc73c11aaf6387bed807684d446f7 (patch) | |
tree | 4be520716c39ac0d77f534a0ea3c0652f5e74c7b | |
parent | d958960466184844bfb36699fa0f2cf9109eca7b (diff) | |
download | cpython3-b28acfa396efc73c11aaf6387bed807684d446f7.tar.gz |
[3.8] Update GitHub CI workflow for macOS. (GH-105302)
-rw-r--r-- | .github/workflows/build.yml | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f34dc5d793..83b952e6e4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -126,10 +126,24 @@ jobs: runs-on: macos-latest 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 steps: - uses: actions/checkout@v2 - name: Configure CPython - run: SDKROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk ./configure --with-pydebug --with-openssl=/usr/local/opt/openssl --prefix=/opt/python-dev + run: | + brew install pkg-config openssl@1.1 xz gdbm tcl-tk + SDKROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk \ + 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 |