Use Maturin to ship the Rust CLI in the Python package #10
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 file is was initially generated by maturin generate-ci github, then heavily simplified. | |
name: Maturin | |
on: | |
push: | |
branches: | |
- 'main' | |
tags: | |
- '*' # TODO: which tags matter? | |
pull_request: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
build: | |
name: ${{ matrix.conf.name }} | |
runs-on: ${{ matrix.conf.runner }} | |
strategy: | |
matrix: | |
conf: | |
- name: linux | |
runner: ubuntu-latest | |
- name: windows | |
runner: windows-latest | |
- name: macos | |
runner: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build wheels | |
uses: PyO3/maturin-action@v1 | |
with: | |
container: off # The build fails in containers. | |
working-directory: rust/cli | |
args: --release --out=../../dist | |
- name: Upload wheels | |
uses: actions/upload-artifact@v4 | |
with: | |
name: wheels-${{ matrix.conf.name }} | |
path: dist |