Skip to content

workflows: add reusable maturin build - #5014

Merged
luhenry merged 1 commit into
mainfrom
maturin-reusable-workflow
Nov 20, 2026
Merged

luhenry merged 1 commit into
mainfrom
maturin-reusable-workflow

Conversation

@luhenry

@luhenry luhenry commented Nov 20, 2026

Copy link
Copy Markdown
Member

Summary

Add a reusable _build-maturin.yml workflow for the common checkout, maturin build, and strict artifact-upload path.

The initial contract keeps the caller-side version matrix and exposes package identity, repository/ref, artifact tag, timeout, maturin arguments, target, manylinux level, working directory, output directory, submodules, and the Linux preparation script. The reusable workflow owns the pinned checkout, maturin, and upload actions. It also owns output-directory selection and rejects conflicting output arguments.

Proof of concept

Migrate three representative workflows:

  • nb-clean: interpreter-independent executable wheel
  • kfnetlist: fixed CPython 3.12 ABI3 build
  • pyrefly: interpreter-independent wheel built from a repository subdirectory

Their existing separate wheel-test jobs and publish contracts remain unchanged.

Follow-up scope

Later stages can add interpreter-tag resolution, host-side post-build testing, source preparation, patches, and narrowly defined resource setup. Artifact-fed builds, multiple maturin invocations, additional output artifacts, and custom containers remain explicit.

@luhenry
luhenry force-pushed the maturin-reusable-workflow branch from 0a5fc30 to 647c3d9 Compare November 20, 2026 22:43
@luhenry
luhenry marked this pull request as ready for review November 20, 2026 22:47
@luhenry
luhenry merged commit 94612c9 into main Nov 20, 2026
81 checks passed
@luhenry
luhenry deleted the maturin-reusable-workflow branch November 20, 2026 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant