Skip to content

Commit

Permalink
CI: Build macOS as recommended by the devguide
Browse files Browse the repository at this point in the history
  • Loading branch information
erlend-aasland committed Feb 20, 2023
1 parent b1b375e commit e02118a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,21 @@ 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 "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 tcl-tk)/lib/pkgconfig\"" >> $GITHUB_ENV
echo "LDFLAGS=-L$(brew --prefix tcl-tk)/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
Expand Down

0 comments on commit e02118a

Please sign in to comment.