ci: skip cargo suite when the change cannot affect Rust
Some checks failed
ci / test (pull_request) Failing after 4m5s
Some checks failed
ci / test (pull_request) Failing after 4m5s
Path allowlist on push-to-main and pull_request: src/, crates/, tests/, Cargo.toml, Cargo.lock, and this workflow. workflow_dispatch still always runs. No branch protections, so a skipped run is not a merge trap.
This commit is contained in:
parent
3e72f40e0e
commit
ad8b43c36c
2 changed files with 20 additions and 1 deletions
|
|
@ -2,10 +2,29 @@ name: ci
|
|||
|
||||
# Tests and clippy run on the Pi runner (aarch64) inside a rust container, so
|
||||
# this CI proves the aarch64 build too. Jobs use the runner's `docker` label.
|
||||
#
|
||||
# Path allowlist: skip the cargo job when the change cannot affect the Rust
|
||||
# build (docs, android, scripts, sibling workflows, markdown). No required
|
||||
# status checks on main, so a missing run is not a merge trap.
|
||||
# workflow_dispatch has no path filter — it always runs the suite.
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "src/**"
|
||||
- "crates/**"
|
||||
- "tests/**"
|
||||
- "Cargo.toml"
|
||||
- "Cargo.lock"
|
||||
- ".forgejo/workflows/ci.yml"
|
||||
pull_request:
|
||||
paths:
|
||||
- "src/**"
|
||||
- "crates/**"
|
||||
- "tests/**"
|
||||
- "Cargo.toml"
|
||||
- "Cargo.lock"
|
||||
- ".forgejo/workflows/ci.yml"
|
||||
workflow_dispatch:
|
||||
|
||||
# One cargo job on the Pi at a time. Overlapping PR+main runs shared the
|
||||
|
|
|
|||
Loading…
Reference in a new issue