Skip to content

Commit

Permalink
🧪 Add a Maturin-based package to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Dec 6, 2024
1 parent 0a0a6ae commit ff2b051
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/reusable-smoke-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,24 @@ jobs:
readme = "README.md"
- name: Build the stub package sdist and wheel distributions
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
run: |
for dist in dist/*.tar.gz
Expand Down

0 comments on commit ff2b051

Please # to comment.