Skip to content

Commit ff2b051

Browse files
committed
🧪 Add a Maturin-based package to CI
1 parent 0a0a6ae commit ff2b051

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/reusable-smoke-test.yml

+18
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,24 @@ jobs:
9696
readme = "README.md"
9797
- name: Build the stub package sdist and wheel distributions
9898
run: python3 -m build
99+
- name: Create the Rust package directory
100+
run: mkdir -pv rust-example
101+
- name: Initialize a Rust project
102+
run: cargo init
103+
working-directory: rust-example
104+
- name: Populate the Rust package `pyproject.toml`
105+
run: echo "$CONTENTS" > pyproject.toml
106+
env:
107+
CONTENTS: |
108+
[build-system]
109+
requires = [
110+
"maturin ~=1.0",
111+
]
112+
build-backend = "maturin"
113+
working-directory: rust-example
114+
- name: Build the stub package sdist and wheel distributions
115+
run: python3 -m build -o ../dist/
116+
working-directory: rust-example
99117
- name: Register the stub package in devpi
100118
run: |
101119
for dist in dist/*.tar.gz

0 commit comments

Comments
 (0)