PyO3/maturin-action — dự án mã nguồn mở — đang có 192 sao GitHub. GitHub Action to install and run a custom maturin command with built-in support for cross compilation
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Enable a compiler cache with cache: sccache or cache: kache (or the equivalent sccache: true / kache: true booleans). Only one cache can be enabled. kache is installed from GitHub Releases and its store is persisted with GitHub Actions cache on the runner, including manylinux Docker builds.
To generate a GitHub Actions workflow for your project, try the maturin generate-ci github command.
If you want to build and publish a Python extension module for common Python versions, operating systems, and CPU architectures,
take a look at the following examples:
messense/crfs-rs: PyO3 abi3 wheel example
messense/rjmespath-rs: PyO3 abi3 wheel with Rust nightly toolchain example
astral-sh/uv: Hardened binary publishing example
milesgranger/pyrus-cramjam: PyO3 non-abi3 wheel example
messense/auditwheel-symbols: bin binding example using MUSL libc
adriangb/graphlib2: PyO3 abi3 wheel
pydantic/pydantic-core: PyO3 non-abi3 wheel with PyPy support example
messense/py-dissimilar: PyO3 non-abi3 wheel with PyPy support example
Inputs
Name
Required
Description
Type
Default
command
No
maturin command to run
string
build
args
No
Arguments to pass to maturin subcommand
string
maturin-version
No
The version of maturin to use. Must match a tagged release
string
latest
manylinux
No
Control the manylinux platform tag on linux, ignored on other platforms, use auto to build for lowest compatible
string
Defaults to auto for the publish command
target
No
The --target option for Cargo
string
container
No
manylinux docker container image name
string
Default depends on target and manylinux options, Set to off to disable manylinux docker build and build on the host instead.
docker-options
No
Additional Docker run options, for passing environment variables and etc.
string
rust-toolchain
No
Rust toolchain name.
string
Defaults to stable for Docker build. To use the latest available version for the host build, the user must specify this in the CI config or repo config.
rustup-components
No
Rustup components
string
Defaults to empty
working-directory
No
The working directory to run the command in
string
Defaults to the root of the repository
cache
No
Compiler cache: none, sccache, or kache. When unset, the sccache / kache booleans still apply
string
sccache
No
Enable sccache for faster builds. Equivalent to cache: sccache
boolean
Defaults to false
kache
No
Enable kache for faster builds. Equivalent to cache: kache
boolean
Defaults to false
kache-version
No
kache release to install when kache is enabled, like v0.19.0. Defaults to the latest GitHub release
string
before-script-linux
No
Script to run before the maturin command on Linux
string
manylinux Docker container
If a manylinux version is specified and the target is a Linux target (whether set explicitly via the target input or implied from the host), this action will run the maturin command in a manylinux docker container.
For native host builds the pypa manylinux docker images are used. For cross compilation, images from rust-cross are typically used by default. This can be overridden by specifying the container input.
Here is a table detailing examples of the default selected containers:
You can override it by supplying the container input.
If you use wish to use an official manylinux image for a different architecture from the runner, you will need to
set up QEMU before using this action, for example
Note that the actions/setup-python action won't affect manylinux build since it's containerized,
so if you want to build for certain Python version for Linux, use -i pythonX.Y in the args option in
PyO3/maturin-action instead, for example
To build for every available interpreter at once — including the free-threaded builds — use
--find-interpreter; see Free-threaded CPython below.
Free-threaded CPython
maturin builds wheels for the free-threaded ("no-GIL") CPython
builds automatically when you pass --find-interpreter and a free-threaded interpreter is
available. Free-threaded interpreters carry a t suffix (python3.14t, python3.15t, …); maturin
discovers the officially supported ones (CPython 3.14 and newer) the same way it discovers the
regular builds — the experimental 3.13t is not discovered automatically. Discovery needs a
reasonably recent maturin, which the action installs by default.
Linux (manylinux)
No configuration needed — the default manylinux containers ship the free-threaded interpreters, and
the action puts every interpreter under /opt/python on PATH, so --find-interpreter finds them:
setup-python exposes the free-threaded build under its t-suffixed name (python3.14t, or
python3.14t.exe on Windows), which is what --find-interpreter looks for.
Windows: build the regular and free-threaded interpreters in separate jobs
On Windows, co-installing the regular and free-threaded interpreters of the same minor version in
one setup-python step can fail
(python/cpython#127294,
#313). Use a matrix with one interpreter per
job instead.
Stable ABI (abi3 / abi3t)
The free-threaded build has its own stable ABI, abi3t
(PEP 803, added in CPython 3.15), distinct from the
GIL-enabled abi3. PyO3 exposes both as Cargo features, and projects can enable both when they
want stable ABI wheels by default:
pyo3 = { version = "0.29", features = ["abi3-py310", "abi3t-py315"] }
One maturin invocation selects at most one stable ABI family, so do not expect one
--find-interpreter build to emit both forward-compatible wheels. To publish a complete wheel set
for current non-EOL CPython releases, run separate maturin builds with different interpreters. The
same default Cargo features can be used for each build:
The abi3-py310 wheel supports GIL-enabled CPython 3.10 and newer. The abi3t-py315 wheel
supports CPython 3.15 and newer, both GIL-enabled and free-threaded. Free-threaded CPython 3.14
predates abi3t, so the python3.14t build produces the version-specific cp314-cp314t wheel.
If stable ABI support is behind a project feature, pass that feature to both builds.
If a project enables only abi3 (no abi3t), --find-interpreter builds no free-threaded stable
ABI wheel; request a version-specific free-threaded wheel explicitly with, e.g., -i python3.14t.
Hardening Release pipelines
We recommend the following steps for hardening release pipelines:
When targeting PyPI, set --compatibility pypi to activate its pre-upload check
Set an explicit manylinux: version for each target to prevent silent regressions
Pin both maturin-action and maturin version, and use a service such as renovate to update them
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/PyO3/maturin-action là nguồn chính thức.
PyO3/maturin-action có những chủ đề gì?
GitHub topics của PyO3/maturin-action: "cffi", "github-actions", "hacktoberfest", "manylinux", "maturin", "pyo3", "rust-cpython", "uniffi". TopGit xếp repo vào nhóm mã nguồn mở.
PyO3/maturin-action có phải mã nguồn mở không?
Có — PyO3/maturin-action phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/PyO3/maturin-action.
PyO3/maturin-action có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho PyO3/maturin-action. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
PyO3/maturin-action còn đang phát triển không?
Commit gần nhất trên PyO3/maturin-action là 7 ngày trước (theo timestamp GitHub). Repo có 62 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
PyO3/maturin-action dùng license gì?
PyO3/maturin-action phát hành theo license MIT. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về maturin-action?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về maturin-action.