fix: revert workflows to reach any platform and any arch

This commit is contained in:
Alpha Nerd 2026-04-13 17:48:10 +02:00
parent 57998fd84c
commit 5040d181d2
Signed by: alpha-nerd
SSH key fingerprint: SHA256:QkkAgVoYi9TQ0UKPkiKSfnerZy2h4qhi3SVPXJmBN+M
3 changed files with 14 additions and 56 deletions

View file

@ -7,16 +7,10 @@ on:
workflow_dispatch:
jobs:
build-and-publish:
name: Build & Publish (${{ matrix.runner }}, py${{ matrix.python }})
runs-on: ${{ matrix.runner }}
publish:
runs-on: docker-amd64
container:
image: python:${{ matrix.python }}-bookworm
strategy:
matrix:
python: ["3.10", "3.11", "3.12"]
runner: [docker-amd64, docker-arm64]
image: python:3.12-bookworm
steps:
- name: Checkout repository
@ -26,21 +20,13 @@ jobs:
.
- name: Install build tools
run: |
apt-get update -qq && apt-get install -y patchelf
pip install build Cython twine auditwheel
run: pip install build twine
- name: Build wheel
run: python -m build --wheel
- name: Repair wheel to manylinux
run: auditwheel repair dist/*.whl --wheel-dir wheelhouse/
- name: Check wheel metadata
run: twine check wheelhouse/*.whl
- name: Build package
run: python -m build
- name: Publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: twine upload --verbose wheelhouse/*.whl
run: twine upload dist/*