Skip to content

Commit 3c535cf

Browse files
committed
debug! rust sdist+whl via pypa/build
1 parent 1572226 commit 3c535cf

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,18 @@ jobs:
101101
- name: Initialize a Rust project
102102
run: cargo init
103103
working-directory: rust-example
104-
- name: Build a Rust project
105-
run: pipx run maturin build --release --out ../dist/
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"
106113
working-directory: rust-example
114+
- name: Build the stub package sdist and wheel distributions
115+
run: python3 -m build rust-example/
107116
- name: Register the stub package in devpi
108117
run: twine register dist/*.tar.gz
109118
env:

0 commit comments

Comments
 (0)