I am trying once more to get github to build some C limited ABI extensions. I had a lot of problems caused by various deprecated github actions eg uses: actions/upload-artifact@v4
caused a lot of grief. So I looked for some assistance and found this example GitHub - joerick/python-abi3-package-sample: An example Python package that builds ABI3-compatible wheels. I forked this for playing about GitHub - MrBitBucket/ci-spam: An example Python package that builds ABI3-compatible wheels
After make some small changes to .github/workflows/cibuildwheel.yml
it looks like
name: Build
on: [push]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-13, macos-14]
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: all
- name: Build wheels
uses: pypa/cibuildwheel@v2.22.0
env:
CIBW_BUILD: cp313-*
- uses: actions/upload-artifact@v4
with:
name: "${{ github.event.repository.name }}-${{ matrix.os }}-${{ strategy.job-index }}"
path: ./wheelhouse/*.whl
I managed to make this simple build 10 extensions
spam-0.1.0-cp36-abi3-macosx_10_13_x86_64.whl
spam-0.1.0-cp36-abi3-macosx_11_0_arm64.whl
spam-0.1.0-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
spam-0.1.0-cp36-abi3-musllinux_1_2_aarch64.whl
spam-0.1.0-cp36-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
spam-0.1.0-cp36-abi3-musllinux_1_2_i686.whl
spam-0.1.0-cp36-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
spam-0.1.0-cp36-abi3-musllinux_1_2_x86_64.whl
spam-0.1.0-cp36-abi3-win32.whl
spam-0.1.0-cp36-abi3-win_amd64.whl
Reading Options - cibuildwheel I was expecting to get others eg ppc64le s390x armv7l wheels.
I suppose I lack some cibuildwheel environment setting. Anyone know of how to force those builds or a better example?