feat: new build process and workflows
Some checks failed
Publish to PyPI / Build (docker-amd64, py3.10) (push) Failing after 28s
Publish to PyPI / Build (docker-arm64, py3.10) (push) Failing after 46s
Publish to PyPI / Build (docker-amd64, py3.11) (push) Failing after 30s
Publish to PyPI / Build (docker-arm64, py3.11) (push) Failing after 46s
Publish to PyPI / Build (docker-amd64, py3.12) (push) Failing after 28s
Publish to PyPI / Build (docker-arm64, py3.12) (push) Failing after 43s
Publish to PyPI / Publish to PyPI (push) Has been skipped

ver: bump
This commit is contained in:
Alpha Nerd 2026-04-12 15:49:20 +02:00
parent c80625a418
commit 58815eec71
Signed by: alpha-nerd
SSH key fingerprint: SHA256:QkkAgVoYi9TQ0UKPkiKSfnerZy2h4qhi3SVPXJmBN+M
5 changed files with 78 additions and 17 deletions

View file

@ -7,10 +7,16 @@ on:
workflow_dispatch:
jobs:
publish:
runs-on: docker-amd64
build:
name: Build (${{ matrix.runner }}, py${{ matrix.python }})
runs-on: ${{ matrix.runner }}
container:
image: python:3.12-bookworm
image: python:${{ matrix.python }}-bookworm
strategy:
matrix:
python: ["3.10", "3.11", "3.12"]
runner: [docker-amd64, docker-arm64]
steps:
- name: Checkout repository
@ -20,13 +26,36 @@ jobs:
.
- name: Install build tools
run: pip install build twine
run: pip install build Cython
- name: Build package
run: python -m build
- name: Build wheel
run: python -m build --wheel
- name: Upload wheel artifact
uses: actions/upload-artifact@v3
with:
name: wheel-${{ matrix.runner }}-py${{ matrix.python }}
path: dist/*.whl
publish:
name: Publish to PyPI
needs: build
runs-on: docker-amd64
container:
image: python:3.12-bookworm
steps:
- name: Download all wheels
uses: actions/download-artifact@v3
with:
path: dist/
merge-multiple: true
- name: Install twine
run: pip install twine
- name: Publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: twine upload dist/*
run: twine upload dist/**/*.whl