Skip to content
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
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