v5.0.6 #23
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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Release package | |
on: | |
release: | |
types: [published] | |
jobs: | |
release: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
python-version: [ '3.8', '3.9', '3.10', '3.11' ] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
poetry install | |
- name: Install latest stable | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Install LLVM and Clang | |
if: matrix.os == 'windows-latest' | |
uses: KyleMayes/install-llvm-action@v2 | |
with: | |
version: "13.0" | |
directory: ${{ runner.temp }}/llvm | |
- name: Set LIBCLANG_PATH | |
if: matrix.os == 'windows-latest' | |
run: echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV | |
- name: PyPi publish | |
if: matrix.os == 'ubuntu-latest' | |
uses: messense/maturin-action@v1 | |
env: | |
MATURIN_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | |
with: | |
maturin-version: latest | |
command: publish | |
args: --username __token__ --skip-existing --out dist --no-sdist --interpreter python${{ matrix.python-version }} | |
manylinux: 2014 | |
- name: PyPi publish | |
if: matrix.os == 'macos-latest' | |
uses: messense/maturin-action@v1 | |
env: | |
MATURIN_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | |
with: | |
maturin-version: latest | |
command: publish | |
args: --username __token__ --skip-existing --out dist --target universal2-apple-darwin --no-sdist --interpreter python${{ matrix.python-version }} | |
manylinux: auto | |
- name: PyPi publish | |
if: matrix.os == 'windows-latest' | |
uses: messense/maturin-action@v1 | |
env: | |
MATURIN_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | |
with: | |
maturin-version: latest | |
command: publish | |
args: --username __token__ --skip-existing --out dist --no-sdist --interpreter python | |
- name: Release | |
uses: svenstaro/[email protected] | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: dist/* | |
tag: ${{ github.ref_name }} | |
body: ${{ github.event.head_commit.message }} | |
overwrite: true | |
file_glob: true |