This GitHub Actions workflow automates the compilation of PitchBlack Recovery Project (PBRP) images for Android devices.
Triggered manually via the workflow_dispatch
event with customizable inputs.
Here are the inputs required for the PBRP-RECOVERY-BUILDER
workflow:
Name | Description | Example |
---|---|---|
MANIFEST_URL |
Git URL of the PBRP manifest repository. | https://github.com/PitchBlackRecoveryProject/manifest_pb.git |
MANIFEST_BRANCH |
Branch name of the PBRP manifest to sync. | android-11.0 |
DEVICE_TREE_URL |
Git URL of the device-specific repository. | https://github.com/PitchBlackRecoveryProject/android_device_samsung_m21.git |
DEVICE_TREE_BRANCH |
Branch name of the device-specific repository. | android-11.0 |
DEVICE_PATH |
Directory path to clone the device tree into. | device/samsung/m21 |
DEVICE_NAME |
Codename or model name of the device. | m21 |
MAKEFILE_NAME |
Name of the makefile to initiate the build. | pbrp_m21 |
BUILD_TARGET |
Target partition to build (e.g., boot, recovery, vendorboot). | recovery |
user |
Your GitHub username for commits. | JohnDoe |
USER_EMAIL |
Email address associated with your GitHub account. | johndoe@example.com |
Triggered by the repository owner and runs on the latest Ubuntu runner. It includes steps for setting up the environment, syncing repositories, compiling the recovery image, and uploading the build artifacts to a new release.
- Display Run Parameters: Outputs user-defined environment variables.
- Check Out: Uses
actions/checkout@v4
to check out the repository. - Cleanup: Utilizes a custom action for workspace cleanup.
- Prepare the Environment: Sets up the necessary build environment.
- Setup SSH Keys: Configures SSH keys if required for private repositories.
- Install repo: Installs the
repo
tool. - Initialize repo: Initializes the PBRP manifest repository.
- Repo Sync: Synchronizes all repositories.
- Clone Device Tree: Clones the device tree into the workspace.
- Set Swap Space: Allocates swap space for the build.
- Building Recovery: Executes the build process for PBRP.
- Upload to Release: Uploads the built image to a GitHub release.
To run the workflow:
- Go to the
Actions
tab of thePBRP-RECOVERY-BUILDER
repository. - Select the
Recovery Build
workflow. - Click on
Run workflow
. - Fill in the required fields with your specific build details.
- Click
Run workflow
to start the build process.
- Replace all
PLACEHOLDER
values with actual data relevant to your build. - The workflow is configured for PBRP but can be adapted for other recovery projects as needed.
- Ensure your repository secrets are set up correctly for SSH keys and GitHub tokens.
This project owes its existence to the contributions and efforts of many individuals and communities. We extend our sincere gratitude to everyone who has played a part in bringing this project to fruition.
Special thanks to:
- ghazzor for forking and modifying Action-TWRP-Builder to build PBRP recovery and for providing the original workflow that served as the foundation for this project.
- azwhikaru for the original Action-TWRP-Builder repository, which was forked and modified by ghazzor.
We also recognize the following for their support and contributions:
- The PitchBlack Recovery Project team for their outstanding contributions to the recovery development community.
- All developers and contributors who have contributed to device trees, kernels, and various scripts that streamline the building process.
- The GitHub community for providing a collaborative platform that unites developers from across the globe.
For more information on PBRP, visit the PitchBlack Recovery Project.