🧪 Add a Maturin-based package to CI

This commit is contained in:
Sviatoslav Sydorenko 2024-12-06 04:21:39 +01:00 committed by Sviatoslav Sydorenko
parent 0a0a6ae824
commit ff2b051b0a
No known key found for this signature in database
GPG key ID: 9345E8FEA89CA455

View file

@ -96,6 +96,24 @@ jobs:
readme = "README.md" readme = "README.md"
- name: Build the stub package sdist and wheel distributions - name: Build the stub package sdist and wheel distributions
run: python3 -m build run: python3 -m build
- name: Create the Rust package directory
run: mkdir -pv rust-example
- name: Initialize a Rust project
run: cargo init
working-directory: rust-example
- name: Populate the Rust package `pyproject.toml`
run: echo "$CONTENTS" > pyproject.toml
env:
CONTENTS: |
[build-system]
requires = [
"maturin ~=1.0",
]
build-backend = "maturin"
working-directory: rust-example
- name: Build the stub package sdist and wheel distributions
run: python3 -m build -o ../dist/
working-directory: rust-example
- name: Register the stub package in devpi - name: Register the stub package in devpi
run: | run: |
for dist in dist/*.tar.gz for dist in dist/*.tar.gz