How mujianwu/action-recovery-builder works
Purpose
This repository is a GitHub Actions-only build orchestrator for Android recovery images. It accepts upstream manifest and device-tree parameters, builds TWRP, OrangeFox (OFRP), or SkyHawk Recovery Project (SHRP), and publishes resulting artifacts through GitHub Releases.
Entry Point and Invocation
The sole execution entry point is the manually triggered GitHub Actions workflow at .github/workflows/Make.yml. Users fork the repository, open Actions, and supply workflow inputs such as manifest URL/branch, device repository/branch/path, and device codename.
Workflow Orchestration
.github/workflows/Make.yml is the architectural core: it receives build parameters, provisions a GitHub-hosted runner, and coordinates source acquisition, environment setup, compilation, and release publication. The 2021 redesign described in README.md supports multiple concurrent workflow workers through parameterized runs.
Source and Device Boundary
The workflow treats recovery platform sources and device definitions as external inputs:
• Recovery manifest: LIBRARY_NAME, LIBRARY_URL, LIBRARY_BRANCH
• Device tree: DEVICE_URL, DEVICE_BRANCH, DEVICE_PATH
• Build target: DEVICE_NAME
This separates reusable recovery source bases from device-specific board configuration. Supported upstream ecosystems include TWRP, OFRP, and SHRP, as documented in README.md.
Build Pipeline
Control flow is: manual workflow dispatch → input validation/parameter use → checkout/sync selected recovery source → clone device tree into the requested Android source path → invoke the recovery build for the target device → collect generated image artifacts. Compilation runs entirely in the CI runner rather than in a checked-in application runtime.
Artifact Delivery
Build outputs are intended for GitHub Releases, referenced by README.md’s releases link. GitHub Actions is therefore both the compute environment and deployment mechanism; GitHub/GitLab manifest and device repositories are required external source services.
Repository Shape
There is no application source tree, service runtime, or persistent backend. The repository consists of user documentation (README.md) plus automation infrastructure (.github/workflows/Make.yml), with GitHub Actions as the effective runtime and release storage as the final output boundary.
Main entry points: Make.yml Workflow inputs · README.md Build documentation
Components 12
GitHub Automation
GitHub Actions provides the runtime and release destination.
- Build documentation · Documents supported recovery ecosystems and release usage.
README.md - Make workflow · Manual entry point and pipeline orchestrator.
.github/workflows/Make.yml - Workflow inputs · Manifest, device-tree, path, branch, and codename selections.
.github/workflows/Make.yml - GitHub Releases · Final distribution boundary for generated images.
External Sources
Selected at dispatch time.
- Recovery manifest · Selected by library name, URL, and branch.
- Device-tree repository · Selected by URL and branch.
Build Pipeline
Executed on an ephemeral hosted runner.
- GitHub-hosted runner · Provisions the build environment.
.github/workflows/Make.yml - Recovery source base · Platform source synchronized from the selected manifest.
- Device tree · Cloned into the requested Android source path.
- Recovery build · Builds the selected recovery for the device codename.
.github/workflows/Make.yml - Recovery images · Generated image outputs collected from the build.
Other components
- Repository user · Forks the repository and starts builds.
Connections 15
- Repository user → Build documentation: reads
- Repository user → Make workflow: manually dispatches
- Make workflow → Workflow inputs: receives
- Workflow inputs → Recovery manifest: selects URL and branch
- Workflow inputs → Device-tree repository: selects URL and branch
- Make workflow → GitHub-hosted runner: provisions
- GitHub-hosted runner → Recovery manifest: checks out and syncs
- Recovery manifest → Recovery source base: defines source checkout
- GitHub-hosted runner → Device-tree repository: clones
- Device-tree repository → Device tree: provides
- Recovery source base → Recovery build: provides recovery platform
- Device tree → Recovery build: provides device configuration
- Workflow inputs → Recovery build: sets target codename
- Recovery build → Recovery images: generates
- Recovery images → GitHub Releases: publishes