Skip to content

[Minor] Update release-action (#20) #2

[Minor] Update release-action (#20)

[Minor] Update release-action (#20) #2

Workflow file for this run

name: Build release
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Maturin build
uses: PyO3/maturin-action@v1
with:
command: build
args: --release --strip
- name: Upload wheel
uses: actions/upload-artifact@v4
with:
name: python-${{ matrix.python-version }}-wheels
path: target/wheels/*whl