Skip to content

Commit

Permalink
ci: support Universal2 wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii committed Feb 5, 2021
1 parent 7bcdd96 commit 1908f5a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
with:
submodules: true

- uses: joerick/cibuildwheel@v1.8.0
- uses: joerick/cibuildwheel@v1.9.0
env:
CIBW_BUILD: cp38-win_amd64 cp27-manylinux_i686 cp37-macosx_x86_64
CIBW_TEST_EXTRAS: test
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,36 +47,40 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
arch: [auto]
type: [Standard]

include:
- os: ubuntu-latest
type: Standard
arch: auto
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2010
CIBW_MANYLINUX_I686_IMAGE: manylinux2010

- os: ubuntu-latest
type: ManyLinux1
arch: auto
CIBW_MANYLINUX_X86_64_IMAGE: skhep/manylinuxgcc-x86_64
CIBW_MANYLINUX_I686_IMAGE: skhep/manylinuxgcc-i686

- os: macos-latest
type: Standard
arch: universal2

steps:
- uses: actions/checkout@v1
with:
submodules: true

- uses: joerick/cibuildwheel@v1.8.0
- uses: joerick/cibuildwheel@v1.9.0
env:
CIBW_SKIP: cp27-win* pp27*
CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.CIBW_MANYLINUX_I686_IMAGE }}
CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.CIBW_MANYLINUX_X86_64_IMAGE }}
CIBW_ARCH: ${{ matrix.arch }}
CIBW_TEST_EXTRAS: test
CIBW_TEST_COMMAND: "pytest {project}/tests"
CIBW_TEST_SKIP: "pp*macos*"

- name: Show files
run: ls -lh wheelhouse
shell: bash
CIBW_TEST_SKIP: "pp*macos* *universal2:arm64"

- name: Verify clean directory
run: git diff --exit-code
Expand All @@ -100,7 +104,7 @@ jobs:
- uses: ilammy/msvc-dev-cmd@v1

- name: Build 64-bit wheel
uses: joerick/cibuildwheel@v1.8.0
uses: joerick/cibuildwheel@v1.9.0
env:
CIBW_BUILD: cp27-win_amd64
DISTUTILS_USE_SDK: 1
Expand All @@ -111,18 +115,14 @@ jobs:
arch: x86

- name: Build 32-bit wheel
uses: joerick/cibuildwheel@v1.8.0
uses: joerick/cibuildwheel@v1.9.0
env:
CIBW_BUILD: cp27-win32
DISTUTILS_USE_SDK: 1
MSSdk: 1
CIBW_TEST_EXTRAS: test
CIBW_TEST_COMMAND: "pytest {project}/tests"

- name: Show files
run: ls -lh wheelhouse
shell: bash

- name: Verify clean directory
run: git diff --exit-code
shell: bash
Expand Down

0 comments on commit 1908f5a

Please sign in to comment.