Scope /ci-local to the host's architecture and named jobs #21
Loading…
Reference in a new issue
No description provided.
Delete branch "docs/ci-local-scope-multiarch-cost"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
/ci-localtreats a multi-architecture build/publish job the same as a deploy/publishjob — skip it by default.
actalways emulates whichever architecture isn't the host'sown rather than skipping it, so reproducing one locally pays the same QEMU cost the real
runner pays, for no extra assurance CI doesn't already give for real on every push.
act push/act pull_requestrunsevery job in the workflow. Whether that happens to dodge the expensive jobs depends on
their own
if:conditions, which is a property of one workflow today, not something theskill can assume generally. The skill now says to enumerate jobs, read their
if:/needs:,and name the wanted set explicitly with
-j.Found while reproducing someones.computer's CI locally on an ARM Mac: its
publish-dry-runjob hardcodes--platform linux/amd64,linux/arm64(
.github/actions/publish-image/action.yml), which is exactly the kind of job this changetells
/ci-localto skip by default.Test plan
Docs-only change to a skill's Markdown instructions — no code, no CI in this repo.
Read through the updated
commands/ci-local.mdfor consistency.