Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly build macOS wheels dual arch #2602

Merged
merged 1 commit into from
Sep 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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