# Automating Recovery Builds with OrangeFox Builder

**Author:** kelexine  
**Date:** 2023-10-20  
**Category:** CI/CD  
**Tags:** Android, OrangeFox, Recovery, GitHub Actions, Automation  
**URL:** https://kelexine.is-a.dev/blog/orange-fox-builder

---

# streamlining Android Recovery Development

Compiling a custom recovery like OrangeFox or TWRP is a resource-intensive task. It requires downloading huge source trees (often 30GB+), setting up a complex build environment, and waiting hours for compilation.

To solve this, I created the **Orange-Fox-builder**, a CI/CD pipeline leveraging GitHub Actions to build recoveries in the cloud.

## The Workflow

The project uses a highly optimized GitHub Actions workflow that:

1.  **Initializes the Environment:** Sets up an Ubuntu runner with all necessary dependencies (build-essential, python, etc.).
2.  **Syncs Source Code:** Efficiently fetches the minimal OrangeFox source tree.
3.  **Injects Device Tree:** Clones the specific device tree (e.g., for Tecno Spark 8C) into the build environment.
4.  **Compiles:** Runs the `mka recoveryimage` command.
5.  **Releases:** Automatically uploads the resulting `recovery.img` and `.zip` files as a GitHub Release.

## Why it matters

This tool democratizes recovery development. You don't need a powerful server or a stable internet connection to build a recovery. You just need a GitHub account.

## Latest Build

Check out the latest automated build for the Tecno Spark 8C (Kelly).

[**Download OrangeFox Unofficial (Zip)**](https://github.com/kelexine/Orange-Fox-builder/releases/download/6585938051/OrangeFox-Unofficial-kelly.zip)

## Fork it

Want to build for your own device? Fork the repo and edit the config.

[View on GitHub](https://github.com/kelexine/Orange-Fox-builder)

---

*This content is available at [kelexine.is-a.dev/blog/orange-fox-builder](https://kelexine.is-a.dev/blog/orange-fox-builder)*
