chore: release 6.0.1 #42
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 to PyPI | |
on: | |
push: | |
tags: | |
- v[0-9]+.* | |
- test-release.* | |
jobs: | |
windows-build: | |
strategy: | |
matrix: | |
pyversion: ["3.11"] | |
runs-on: "windows-latest" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install latests stable Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.pyversion }} | |
architecture: x64 | |
- name: Build Wheel (PyO3 Binding) | |
uses: messense/maturin-action@v1 | |
with: | |
target: x86_64 | |
command: build | |
args: --release --strip -F python --bindings pyo3 --interpreter python --manifest-path Cargo.toml --out dist-pyo3 | |
- name: Build Wheel (Bin Binding) | |
uses: messense/maturin-action@v1 | |
with: | |
target: x86_64 | |
command: build | |
args: --release --strip -F binary --bindings bin --interpreter python --manifest-path Cargo.toml --out dist-bin | |
- name: Merge Wheels | |
shell: bash | |
run: bash merge-wheel.bash | |
- name: Install wheel | |
run: pip install aspeak --no-index --find-links dist --no-deps --force-reinstall | |
- name: Save Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: wheels | |
path: dist | |
macos-build: | |
strategy: | |
matrix: | |
pyversion: ["3.11"] | |
runs-on: "macos-latest" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install latests stable Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.pyversion }} | |
architecture: x64 | |
- name: Build Wheel (PyO3 Binding) | |
uses: messense/maturin-action@v1 | |
with: | |
target: x86_64 | |
command: build | |
args: --release --strip -F python --bindings pyo3 --interpreter python --manifest-path Cargo.toml --out dist-pyo3 | |
- name: Build Wheel (Bin Binding) | |
uses: messense/maturin-action@v1 | |
with: | |
target: x86_64 | |
command: build | |
args: --release --strip -F binary --bindings bin --interpreter python --manifest-path Cargo.toml --out dist-bin | |
- name: Merge Wheels | |
run: bash merge-wheel.bash | |
- name: Install wheel | |
run: pip install aspeak --no-index --find-links dist --no-deps --force-reinstall | |
- name: Save Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: wheels | |
path: dist | |
# linux-build: | |
# runs-on: ubuntu-latest | |
# strategy: | |
# matrix: | |
# pyversion: ["3.11"] | |
# # target: [x86_64, i686] | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - name: Install latests stable Rust | |
# uses: actions-rs/toolchain@v1 | |
# with: | |
# toolchain: stable | |
# override: true | |
# - uses: actions/setup-python@v4 | |
# with: | |
# python-version: ${{ matrix.pyversion }} | |
# architecture: x64 | |
# - name: Install native dependencies | |
# if: runner.os == 'Linux' | |
# run: sudo apt install libasound2-dev binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu | |
# - name: Build Wheel (PyO3 Binding) | |
# uses: messense/maturin-action@v1 | |
# with: | |
# target: x86_64 | |
# command: build | |
# manylinux: auto | |
# container: off | |
# args: --release --strip -F python --bindings pyo3 --interpreter python${{ matrix.pyversion }} --manifest-path Cargo.toml --out dist-pyo3 | |
# - name: Build Wheel (Bin Binding) | |
# uses: messense/maturin-action@v1 | |
# with: | |
# target: x86_64 | |
# command: build | |
# manylinux: auto | |
# container: off | |
# args: --release --strip -F binary --bindings bin --interpreter python${{ matrix.pyversion }} --manifest-path Cargo.toml --out dist-bin | |
# - name: Merge Wheels | |
# run: bash merge-wheel.bash | |
# - name: Install wheel | |
# run: pip install aspeak --no-index --find-links dist --no-deps --force-reinstall | |
# - name: Save Artifacts | |
# uses: actions/upload-artifact@v3 | |
# with: | |
# name: wheels | |
# path: dist | |
publish: | |
runs-on: ubuntu-latest | |
needs: [windows-build, macos-build] | |
if: "startsWith(github.ref, 'refs/tags/')" | |
steps: | |
- name: Download Artifacts | |
uses: actions/download-artifact@v3 | |
with: | |
name: wheels | |
path: dist | |
- name: Publish Wheels | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} |