Commit 25197f4
ci: cache Python bindings Rust artifacts (#2679)
## Which issue does this PR close?
- None. This is a CI maintenance change for the Python bindings test
job.
## What changes are included in this PR?
This adds a real Rust artifact cache to the Python bindings CI test job
for host maturin builds on Windows and macOS.
Concretely, this PR adds two steps before `PyO3/maturin-action`:
- `Setup Rust toolchain`
- `Cache Rust artifacts`
Linux maturin builds may run inside the manylinux Docker container,
where the host `target/` cache is not expected to help. Windows and
macOS build on the host, so `swatinem/rust-cache` can restore Cargo
artifacts for the expensive maturin compile.
The cache uses a dedicated bindings key, and its `save-if` behavior
matches the existing CI cache discipline: PRs may restore cache entries,
but only `main` pushes create new ones.
## Are these changes tested?
- Not run locally; this is a GitHub Actions workflow-only change.
Co-authored-by: Abanoub Doss <abanoub.doss@gmail.com>1 parent be6cc96 commit 25197f4
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
85 | 95 | | |
86 | 96 | | |
87 | 97 | | |
| |||
0 commit comments