Skip to content

Maturin Test

Maturin Test #2

# .github/workflows/wheely_manylinux_2_24.yml
name: Maturin Test
on:
workflow_dispatch:
inputs:
branch:
description: 'Branch to run the workflow on'
required: true
default: 'main'
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.10', '3.11']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Build with Maturin
uses: PyO3/maturin-action@v1
with:
command: build
args: --release --interpreter python${{ matrix.python-version }}
manylinux: auto
rust-toolchain: nightly
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: wheels
path: target/wheels
if-no-files-found: error # 'warn' or 'ignore' are also available, 'error' will fail the action if no files are found