Skip to content

Transform to Python (PyO3) package - fast_unidecode #44

Transform to Python (PyO3) package - fast_unidecode

Transform to Python (PyO3) package - fast_unidecode #44

Workflow file for this run

name: PyPI Release
# https://help.github.com/en/actions/reference/events-that-trigger-workflows
on:
push:
branches:
- pyo3
release:
types: [published]
jobs:
build-wheels-manylinux:
runs-on: ubuntu-latest
name: Build wheels for Manylinux2014
container: quay.io/pypa/manylinux2014_x86_64
steps:
- uses: actions/checkout@v4
- name: Install Maturin and Build manylinux2014 packages
run: sh build_manylinux_wheels.sh
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: manylinux-wheels
path: ./target/wheels/*whl
build-wheels-macos:
runs-on: ${{ matrix.os }}
name: Build wheels for MacOS
strategy:
matrix:
os: [macOS-11, macOS-12, macOS-13]
python: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
architecture: x64
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: messense/maturin-action@v1
- name: Build ${{ matrix.os }} package on 64bit (${{ matrix.python-version }})
run: maturin build --release
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: macos-wheels
path: ./target/wheels/*whl
# publish-to-pypi:
# name: Publish to PyPI
# runs-on: ubuntu-latest
# needs: [build-wheels-manylinux, build-wheels-macos]
# if: github.event_name == 'release' && github.event.action == 'published'
# steps:
# - name: Download all wheels
# uses: actions/download-artifact@v3
# with:
# path: dist/
# - name: List downloaded wheels
# run: ls -R dist
# - name: Publish to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# password: ${{ secrets.PYPI_API_TOKEN }}