Skip to content

Commit

Permalink
Merge pull request #10 from laggykiller/master
Browse files Browse the repository at this point in the history
arm64 wheels for Windows and Linux
  • Loading branch information
flozz authored Feb 2, 2024
2 parents 1c6ffa5 + 97d7b02 commit 894ce2d
Showing 1 changed file with 29 additions and 8 deletions.
37 changes: 29 additions & 8 deletions .github/workflows/python-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,33 +42,54 @@ jobs:

build_wheels:

name: "Build wheels on ${{ matrix.os }}"
name: "Build wheels on ${{ matrix.os }} ${{ matrix.cibw_archs }}"
runs-on: ${{ matrix.os }}

strategy:
matrix:
os:
- ubuntu-22.04
- windows-2019
- macos-11
include:
- os: windows-2019
cibw_archs: AMD64
- os: windows-2019
cibw_archs: ARM64
- os: windows-2019
cibw_archs: x86
- os: macos-11
cibw_archs: x86_64
- os: macos-11
cibw_archs: arm64
- os: macos-11
cibw_archs: universal2
- os: ubuntu-22.04
cibw_archs: x86_64
- os: ubuntu-22.04
cibw_archs: i686
- os: ubuntu-22.04
cibw_archs: aarch64

steps:

- name: "Checkout the repository"
uses: actions/checkout@v4
with:
submodules: true

- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v2
with:
platforms: all

- name: "Build wheels"
uses: pypa/[email protected].4
uses: pypa/[email protected].5
env:
CIBW_ARCHS_MACOS: x86_64 arm64 universal2
CIBW_ARCHS: ${{ matrix.cibw_archs }}
PIP_USE_PEP517: 1

- name: "Upload artifacts"
uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}
name: wheels-${{ matrix.os }}-${{ matrix.cibw_archs }}
path: ./wheelhouse/*.whl
retention-days: 7

Expand Down

0 comments on commit 894ce2d

Please sign in to comment.