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

Adding specification of CIBW_ARCHS to enable universal builds in macos #52

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
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
40 changes: 37 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,41 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-build: [cp27*, cp37*, cp38*, cp39*]
python-build: [cp37*, cp38*, cp39*]

include:
- os: ubuntu-latest
arch: auto

- os: windows-latest
arch: auto

- os: macos-latest
arch: universal2

steps:
- uses: actions/[email protected]

- name: Build wheels
uses: pypa/[email protected]
with:
output-dir: wheelhouse
env:
CIBW_BUILD: ${{ matrix.python-build }}
CIBW_ARCHS: ${{ matrix.arch }}

- uses: actions/upload-artifact@v2
with:
name: wheels
path: ./wheelhouse/*.whl

package_legacy_wheels:
needs: py_build_test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/[email protected]

Expand All @@ -104,7 +138,7 @@ jobs:
# the -A argument that we specify in the setup.py to set the
# target platform (x86, x64, etc).
- name: Set Windows Python 2.7 environment variables
if: matrix.python-build == 'cp27*' && runner.os == 'Windows'
if: runner.os == 'Windows'
shell: bash
run: |
echo "DISTUTILS_USE_SDK=1" >> $GITHUB_ENV
Expand All @@ -115,7 +149,7 @@ jobs:
with:
output-dir: wheelhouse
env:
CIBW_BUILD: ${{ matrix.python-build }}
CIBW_BUILD: cp27*

- uses: actions/upload-artifact@v2
with:
Expand Down