diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml index 8f0352a..e9244b7 100644 --- a/.github/workflows/build-wheels.yml +++ b/.github/workflows/build-wheels.yml @@ -10,12 +10,24 @@ on: - published jobs: build-wheels: - name: Build py${{ matrix.version }} wheels on ${{ matrix.os }} + name: Build py${{ matrix.version }} wheels for ${{ matrix.platform[1] }} ${{ matrix.platform[2] }} timeout-minutes: 60 - runs-on: ${{ matrix.os }} + runs-on: ${{ matrix.platform[0] }} strategy: matrix: - os: [ubuntu-20.04, macos-11] + platform: + - [ubuntu-20.04, manylinux, x86_64] + - [ubuntu-20.04, manylinux, i686] + - [ubuntu-20.04, manylinux, aarch64] + - [ubuntu-20.04, manylinux, ppc64le] + - [ubuntu-20.04, manylinux, s390x] + - [ubuntu-20.04, musllinux, x86_64] + - [ubuntu-20.04, musllinux, i686] + - [ubuntu-20.04, musllinux, aarch64] + - [ubuntu-20.04, musllinux, ppc64le] + - [ubuntu-20.04, musllinux, s390x] + - [macos-11, macosx, x86_64] + - [macos-11, macosx, arm64] version: [39, 310, 311, 312] steps: - uses: actions/checkout@v4 @@ -29,9 +41,8 @@ jobs: - name: Build wheels uses: pypa/cibuildwheel@v2.16.2 env: - CIBW_BUILD: "cp${{ matrix.version }}-*" - CIBW_ARCHS_LINUX: auto aarch64 ppc64le s390x - CIBW_ARCHS_MACOS: x86_64 arm64 + CIBW_BUILD: "cp${{ matrix.version }}-${{ matrix.platform[1] }}*" + CIBW_ARCHS: ${{ matrix.platform[2] }} - uses: actions/upload-artifact@v3 with: path: ./wheelhouse/*.whl