Commit 6bc9927
chore(ci): gate Rust-wheel workflow on maturin backend, not Cargo.toml
The "Build wheels (cibuildwheel — Rust Phase 2)" workflow misfired on any
PR that touched pyproject.toml (e.g. PR#10): its check_rust_present guard
opened on Cargo.toml presence, but the project's PEP 517 backend is
setuptools.build_meta, so cibuildwheel received a pure-Python py3-none-any
wheel and exited 5 (NonPlatformWheelError) on every matrix leg.
Gate the guard on an actual maturin build-backend — the real precondition
for a platform wheel — so the workflow stays inert until the native
pipeline is wired, while the pyproject.toml path filter still re-triggers
it the moment a maturin backend lands. Also corrects the stale header
comment claiming Cargo.toml is absent on main (it is present).
CI-only: no source, no build-backend, no publish-path change. Verified
independent of ci-cd.yml's build/publish jobs.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 2f61a54 commit 6bc9927
1 file changed
Lines changed: 24 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
| |||
53 | 57 | | |
54 | 58 | | |
55 | 59 | | |
56 | | - | |
| 60 | + | |
57 | 61 | | |
58 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
59 | 72 | | |
60 | | - | |
| 73 | + | |
61 | 74 | | |
62 | 75 | | |
63 | | - | |
| 76 | + | |
64 | 77 | | |
65 | 78 | | |
66 | 79 | | |
| |||
0 commit comments