(wip) additional wheels for other archs #25
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and publish wheels | |
on: | |
push: | |
branches: | |
- main | |
- rust # TODO remove | |
tags: | |
- '*' | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
# linux: | |
# strategy: | |
# fail-fast: false | |
# matrix: | |
# os: [ | |
# # ubuntu-latest, | |
# # windows-latest, | |
# macos-latest | |
# ] | |
# # target: [ | |
# # x86_64, | |
# # aarch64 | |
# # ] | |
# # include: | |
# # - os: ubuntu-latest | |
# # target: i686 | |
# # - os: ubuntu-latest | |
# # target: aarch64 | |
# # - os: ubuntu-latest | |
# # target: armv7 | |
# # - os: ubuntu-latest | |
# # target: ppc64le | |
# # - os: ubuntu-latest | |
# # target: s390x | |
# # # musllinux | |
# # - os: ubuntu-latest | |
# # target: x86_64 | |
# # - os: ubuntu-latest | |
# # target: aarch64 | |
# # - os: windows | |
# # target: i686 | |
# runs-on: ${{ matrix.os }} | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - uses: actions/setup-python@v5 | |
# with: | |
# python-version: '3.12' | |
# - run: pip install -U twine cibuildwheel==2.17.0 | |
# - run: | | |
# cibuildwheel --output-dir dist | |
# - run: twine check --strict dist/* | |
# - name: Upload wheels | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: wheels-${{ matrix.target }} | |
# path: dist/*.whl | |
windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Build wheels | |
run: | | |
pip install cibuildwheel==2.17.0 twine | |
cibuildwheel --output-dir dist | |
- run: twine check --strict dist/* | |
- name: Upload wheels | |
uses: actions/upload-artifact@v4 | |
with: | |
name: wheels-windows | |
path: dist/*.whl | |
macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Build wheels | |
run: | | |
pip install cibuildwheel==2.17.0 twine | |
cibuildwheel --output-dir dist | |
- run: twine check --strict dist/* | |
- name: Upload wheels | |
uses: actions/upload-artifact@v4 | |
with: | |
name: wheels-macos | |
path: dist/*.whl | |
sdist: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build sdist | |
run: | | |
pip install build twine | |
python -m build --sdist --outdir dist | |
- run: twine check --strict dist/* | |
- name: Upload sdist | |
uses: actions/upload-artifact@v4 | |
with: | |
name: wheels-sdist | |
path: dist | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
if: "startsWith(github.ref, 'refs/tags/')" | |
needs: [macos, windows, sdist] | |
steps: | |
- uses: actions/download-artifact@v4 | |
- name: Publish to PyPI | |
run: | | |
pip install twine | |
twine upload --non-interactive --disable-progress-bar --skip-existing wheels-*/* | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} |