Bumps [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel) from 2.19.2 to 2.20.0. - [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.19.2...v2.20.0) --- updated-dependencies: - dependency-name: pypa/cibuildwheel dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
59 lines
1.3 KiB
YAML
59 lines
1.3 KiB
YAML
name: pypi
|
|
#on: [push, pull_request]
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*'
|
|
|
|
jobs:
|
|
build_wheels:
|
|
name: Build wheels on ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: setup-qemu
|
|
if: matrix.os == 'ubuntu-latest'
|
|
uses: docker/setup-qemu-action@v3
|
|
with:
|
|
platforms: all
|
|
|
|
- name: cibuildwheel
|
|
uses: pypa/cibuildwheel@v2.20.0
|
|
env:
|
|
CIBW_ARCHS_LINUX: "x86_64 i686 aarch64 ppc64le s390x"
|
|
CIBW_ARCHS_MACOS: "x86_64 arm64 universal2"
|
|
CIBW_ARCHS_WINDOWS: "AMD64 x86 ARM64"
|
|
CIBW_BUILD: "cp311*"
|
|
CIBW_BUILD_VERBOSITY: 1
|
|
with:
|
|
package-dir: python
|
|
output-dir: wheelhouse
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: wheels-${{ matrix.os }}
|
|
path: ./wheelhouse/*.whl
|
|
|
|
upload_all:
|
|
permissions:
|
|
contents: none
|
|
name: Upload
|
|
needs: [build_wheels]
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- 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_API_TOKEN }}
|