Skip to content

Instantly share code, notes, and snippets.

View derezzolution's full-sized avatar

dissolve into pixels derezzolution

View GitHub Profile
@derezzolution
derezzolution / android-gitea-runner-arm64.md
Created May 24, 2026 03:56
Building Android APKs on arm64 (Raspberry Pi) with Gitea Actions and rootless Podman — including the aapt2 x86_64 workaround

Building Android APKs on a Raspberry Pi with Gitea Actions and rootless Podman

A working pattern for self-hosted Android CI on arm64 hardware. This setup builds release APKs for Pixel-class devices without an emulator, runs entirely in rootless Podman under a Quadlet-managed systemd user unit, and works around the fact that Google still ships an x86_64-only aapt2 binary in the Android SDK build-tools.

Tested on a Raspberry Pi 5 (16 GB, NVMe) running Debian 13 trixie, with Gitea 1.24+ and gitea-runner 1.0.x. The pattern should generalize to any arm64 Linux host running rootless Podman.

The problem

Self-hosting Android CI on arm64 hardware sounds simple — install the SDK, run Gradle, profit. In practice there are several non-obvious obstacles:

@derezzolution
derezzolution / mergechapters.py
Last active January 15, 2024 15:52 — forked from cliss/mergechapters.py
Merge Files with Chapters
import datetime
import json
import os
import subprocess
import sys
#############
### USAGE ###
#############