Repository navigation
ci: one ARM build pipeline shared by release and canary - #137
Merged
Merged
Conversation
Extract the ARM build+verify job release.yml and canary.yml each hand-kept a copy of into a new reusable workflow, .github/workflows/build-package.yml, parameterized by flavor, telemetry pair, and which optional steps (Homebrew manifest, LGPL source asset, caches, firmware-database gate) apply. The release path runs the exact same commands as before (90/90, verified by a command-coverage script against origin/main): the only two changes are the wrong-flavour guard and the source-asset step's ipk lookup, both now derived from `make -s print-appid` instead of a hard-coded stable id, so a future non-stable caller is checked correctly too. canary.yml gains a `dry_run` dispatch input that skips `publish` so the shared pipeline can be proven on a branch without publishing anything. This also prepares the coming nightly caller, which needs no new copy of the job — just another set of inputs. Co-Authored-By: Claude Opus 5 <[email protected]>
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The new reusable workflow references hyphenated inputs via dot syntax (likely mis-parsed in Actions expressions), and its workflow_call defaults/secret requirements don’t match actual runtime behavior.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 2
Open (4)
What changed in this PR
This PR refactors the ARM build+verify GitHub Actions pipeline into a single reusable workflow (.github/workflows/build-package.yml) and updates both release and canary workflows to call into it, reducing drift between the two packaging paths.
Changes:
- Added a reusable
build-package.ymlworkflow (workflow_call) encapsulating ARM build, packaging, and gating steps. - Updated
release.ymlandcanary.ymlto delegate their ARM build jobs to the shared workflow (and added adry_runinput to canary to skip publish). - Updated docs/tooling text to reference the new shared workflow location.
| File | Description |
|---|---|
| docs/distribution.md | Updates CI/release documentation to reference build-package.yml as the shared ARM pipeline. |
| ci/gen-release-audit.py | Updates the release audit “built by” row to mention build-package.yml being invoked by the release workflow. |
| .github/workflows/release.yml | Replaces the inlined ARM build job with a call into the reusable build-package.yml. |
| .github/workflows/canary.yml | Replaces the inlined ARM build job with a call into build-package.yml and adds dry_run to skip publishing. |
| .github/workflows/build-package.yml | Introduces the shared reusable ARM build+verify workflow with optional gates/steps. |
| .agents/skills/cut-release/SKILL.md | Updates release process guidance to reflect the new shared workflow call site. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+81
to
+84
| FLAVOR: ${{ inputs.flavor }} | ||
| TELEMETRY: ${{ inputs.telemetry }} | ||
| HOMEBREW_MANIFEST: ${{ inputs.homebrew-manifest }} | ||
| run: | |
Comment on lines
+392
to
+396
| # The tarball is the pristine upstream one build-ffmpeg.sh already downloaded and verified | ||
| # against a pinned sha256 — no patches are applied, so this IS the corresponding source. | ||
| if: inputs.source-asset | ||
| run: | | ||
| set -euo pipefail |
Comment on lines
+43
to
+48
| source-asset: | ||
| description: > | ||
| Attach the LGPL corresponding source for the bundled FFmpeg and build the versioned, | ||
| independently-reconstructible source tarball. Release only — canary never had these. | ||
| type: boolean | ||
| default: true |
…-closed default Make the workflow_call contract match reality (every caller's upload step hard-fails without SENTRY_AUTH_TOKEN), and document why source-asset defaults true: any publisher of the package owes LGPL source, not just release. Co-Authored-By: Claude Opus 5 <[email protected]>
This was referenced Sep 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
.github/workflows/build-package.yml(on: workflow_call), parameterized byflavor,telemetry, and optional steps (Homebrew manifest, LGPL source asset, caches, firmware-database gate).release.yml'sbuildjob andcanary.yml'sbuildjob are now thin callers into it instead of two hand-kept copies of the same pipeline..ipklookup are now derived frommake -s print-appidinstead of a hard-coded stable id, so a future non-stable caller (a coming nightly flavour) is checked correctly without a third copy of the job.canary.ymlgains adry_rundispatch input that skipspublishentirely, so the shared pipeline can be proven end to end on a branch without publishing anything.release.yml's "TWO TRAPS" header comment anddocs/distribution.md's--no-default-featuresassertion note now namebuild-package.ymlwhere the step actually lives.Behaviour
origin/mainwith a command-coverage script — every one of the 90 non-comment shell command lines in the oldrelease.ymlbuild job is still present verbatim inbuild-package.yml, in the same relative order. The only two differences are intentional: the wrong-flavour guard and the source-assetipk=$(ls ...)lookup, both switched from a hard-codedcom.beb.plxnativeglob to the appidmake -s print-appidderives.fetch-depth: 0(nothing in the build steps —check-package.py,check-elf.sh,prepare-source-release.py,fwcompat.py,rust-modules/build.rs— reads git history;build.rsexplicitly avoids git state so it stays correct in a tarball/detached-HEAD checkout);RUST_NIGHTLYfor the ARM build now comes frombuild-package.yml's ownvars.RUST_NIGHTLY || 'nightly-2026-07-02'fallback instead of a value hard-coded in canary.yml (same date today;host-checkskeeps its own separate pin for the host-side checks).gen-manifesttool is now installed unconditionally alongsidefw-symbols/ipk-verify(harmless — canary never invokes it, sincehomebrew-manifestdefaults to false).How it is proven
actionlinton all three workflows: clean, aside from one pre-existingSC2001style finding inrelease.yml's untouchedpreparejob (confirmed present onorigin/maintoo, unrelated to this change).run:line inorigin/main'srelease.ymlbuild job againstbuild-package.yml: 90/90 lines present, same relative order, with only the two intendedprint-appid-based replacements noted above.dry_run: truefrom this branch, to prove the shared pipeline builds and gates end to end with nothing published. That is the natural next step before merging.🤖 Generated with Claude Code