Some checks failed
Pip / build (ubuntu-24.04-arm, 3.11) (push) Has been cancelled
Pip / build (ubuntu-24.04-arm, 3.12) (push) Has been cancelled
Pip / build (ubuntu-24.04-arm, 3.13) (push) Has been cancelled
pre-commit / pre-commit (push) Has been cancelled
Wheels / Build SDist (push) Has been cancelled
Wheels / Wheels on ubuntu-24.04-arm (push) Has been cancelled
Wheels / Upload release (push) Has been cancelled
Bumps [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel) from 2.23.0 to 3.1.2. - [Release notes](https://github.com/pypa/cibuildwheel/releases) - [Changelog](https://github.com/pypa/cibuildwheel/blob/main/docs/changelog.md) - [Commits](https://github.com/pypa/cibuildwheel/compare/v2.23.0...v3.1.2) --- updated-dependencies: - dependency-name: pypa/cibuildwheel dependency-version: 3.1.2 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
90 lines
2 KiB
YAML
90 lines
2 KiB
YAML
name: Wheels
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
push:
|
|
release:
|
|
types:
|
|
- published
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build_sdist:
|
|
name: Build SDist
|
|
runs-on: ubuntu-24.04-arm
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: true
|
|
fetch-depth: 0
|
|
|
|
- name: Build SDist
|
|
run: pipx run build --sdist
|
|
|
|
- name: Check metadata
|
|
run: pipx run twine check dist/*
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: sdist
|
|
path: dist/*.tar.gz
|
|
compression-level: 0
|
|
if-no-files-found: error
|
|
|
|
|
|
build_wheels:
|
|
name: Wheels on ${{ matrix.os }}${{ matrix.extra }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: ["ubuntu-24.04-arm"]
|
|
arch_linux: ["aarch64"]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: true
|
|
fetch-depth: 0
|
|
|
|
- uses: pypa/cibuildwheel@v3.1.2
|
|
env:
|
|
CIBW_ARCHS_LINUX: ${{ matrix.arch_linux }}
|
|
CIBW_BUILD: "cp311-manylinux* cp312-manylinux* cp313-manylinux*"
|
|
CIBW_MANYLINUX_AARCH64_IMAGE: "manylinux_2_28"
|
|
- name: Verify clean directory
|
|
run: git diff --exit-code
|
|
shell: bash
|
|
|
|
- name: Upload wheels
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: wheel-${{ matrix.os }}${{ matrix.artifact-extra }}
|
|
path: wheelhouse/*.whl
|
|
compression-level: 0
|
|
if-no-files-found: error
|
|
|
|
|
|
upload_all:
|
|
name: Upload release
|
|
needs: [build_wheels, build_sdist]
|
|
runs-on: ubuntu-latest
|
|
if: github.event_name == 'release' && github.event.action == 'published'
|
|
|
|
steps:
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.x"
|
|
|
|
- uses: actions/download-artifact@v4
|
|
with:
|
|
path: dist
|
|
merge-multiple: true
|
|
|
|
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
with:
|
|
user: __token__
|
|
password: ${{ secrets.pypi_password }}
|