Skip to content

Merge branch 'python-sdk-ci' #15

Merge branch 'python-sdk-ci'

Merge branch 'python-sdk-ci' #15

Workflow file for this run

# This file was autogenerated by maturin v1.7.1, but then customized
name: Python SDK
on:
push:
branches:
- main
- master
tags:
- "*"
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
linux:
runs-on: ${{ matrix.platform.runner }}
strategy:
matrix:
platform:
- runner: ubuntu-latest
target: x86_64
- runner: ubuntu-latest
target: aarch64
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
working-directory: client-libraries/python/auxon-sdk
target: ${{ matrix.platform.target }}
args: --release --out dist
manylinux: 2_28
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-linux-${{ matrix.platform.target }}
path: client-libraries/python/auxon-sdk/dist
if-no-files-found: error
macos:
runs-on: ${{ matrix.platform.runner }}
strategy:
matrix:
platform:
- runner: macos-12
target: x86_64
- runner: macos-14
target: aarch64
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
working-directory: client-libraries/python/auxon-sdk
target: ${{ matrix.platform.target }}
args: --release --out dist
manylinux: 2_28
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels-macos-${{ matrix.platform.target }}
path: client-libraries/python/auxon-sdk/dist
if-no-files-found: error
sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build sdist
uses: PyO3/maturin-action@v1
with:
working-directory: client-libraries/python/auxon-sdk
command: sdist
args: --out dist
manylinux: 2_28
- name: Upload sdist
uses: actions/upload-artifact@v4
with:
name: wheels-sdist
path: client-libraries/python/auxon-sdk/dist
if-no-files-found: error
release:
name: Release
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/v')"
needs: [linux, macos, sdist]
steps:
- uses: actions/download-artifact@v4
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
with:
command: upload
args: --non-interactive --skip-existing wheels-*/*