Upgrade cibuildwheel and surrounding CI infra

This commit is contained in:
Lasse Blaauwbroek
2025-05-13 02:40:06 +08:00
committed by Jacob Alexander
parent 4d5cc20764
commit a89eb0dee6

View File

@@ -39,22 +39,16 @@ jobs:
# arch: ARM64 # arch: ARM64
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Set up QEMU - name: Set up QEMU
if: runner.os == 'Linux' if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v2 uses: docker/setup-qemu-action@v2
# Used to host cibuildwheel
- uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.16.1
- name: Build wheels - name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse uses: pypa/cibuildwheel@v2.23.3
with:
output-dir: wheelhouse
env: env:
CIBW_ARCHS: ${{ matrix.arch }} CIBW_ARCHS: ${{ matrix.arch }}
# TODO: Disable building PyPy wheels. If the build system gets modernized, this should be # TODO: Disable building PyPy wheels. If the build system gets modernized, this should be
@@ -65,28 +59,30 @@ jobs:
# Only needed to make the macosx arm64 build work # Only needed to make the macosx arm64 build work
CMAKE_OSX_ARCHITECTURES: "${{ matrix.arch == 'arm64' && 'arm64' || '' }}" CMAKE_OSX_ARCHITECTURES: "${{ matrix.arch == 'arm64' && 'arm64' || '' }}"
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl path: ./wheelhouse/*.whl
build_sdist: build_sdist:
name: Build source distribution name: Build source distribution
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Build sdist - name: Build sdist
run: pipx run build --sdist run: pipx run build --sdist
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: cibw-sdist
path: dist/*.tar.gz path: dist/*.tar.gz
lint: lint:
name: Lint with flake8 and check black name: Lint with flake8 and check black
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Lint with flake8 and check black - name: Lint with flake8 and check black
run: | run: |