Skip to content

Commit

Permalink
Explicitly build macOS wheels dual arch
Browse files Browse the repository at this point in the history
  • Loading branch information
swt2c committed Sep 6, 2024
1 parent d734b86 commit 77a0b51
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,12 @@ jobs:
- name: initialize variables
id: init
run: |
build_opts=$WXPYTHON_BUILD_ARGS
if [ ${{ matrix.os }} == ubuntu-22.04 ]; then
short_name=linux
elif [ ${{ matrix.os }} == macos-13 ]; then
short_name=macos
build_opts="$build_opts --mac_arch=arm64,x86_64"
elif [ ${{ matrix.os }} == windows-2022 ]; then
if [ ${{ matrix.architecture }} == x64 ]; then
short_name=win64
Expand All @@ -128,6 +130,7 @@ jobs:
fi
echo "short_name=$short_name" >> "$GITHUB_OUTPUT"
echo "canonical_id=$short_name-py${{ matrix.python-version }}-${{ matrix.architecture}}" >> "$GITHUB_OUTPUT"
echo "build_opts=$build_opts" >> "$GITHUB_OUTPUT"
- name: Checkout repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -179,6 +182,8 @@ jobs:
arch: '${{ matrix.architecture }}'

- name: Build the wxPython wheel
env:
WXPYTHON_BUILD_ARGS: ${{ steps.init.outputs.build_opts }}
run: |
cd dist
pip wheel -v wxPython-${{ env.VERSION }}.tar.gz
Expand Down

0 comments on commit 77a0b51

Please sign in to comment.