Persist three Docker volumes into the build job (android-sdk, gradle home, npm cache) and enable the Gradle build cache, so repeat builds skip the ~2GB NDK download, Maven dependency resolution, and unchanged native/Kotlin compilation — cutting builds from ~1h to a few minutes after the first run. The runner must whitelist these volumes via config.yaml (container.valid_volumes); deploy-runner.sh now writes that config, pre-creates the volumes, and starts the daemon with --config. Requires re-running deploy-runner.sh on the runner host before the next tag. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
9 lines
391 B
YAML
9 lines
391 B
YAML
# Forgejo runner config. The important bit is valid_volumes: it whitelists the
|
|
# named Docker volumes the build-apk workflow mounts as persistent caches
|
|
# (Android SDK/NDK, Gradle home, npm cache). Without these listed, the runner
|
|
# rejects the workflow's `volumes:` and the job fails.
|
|
container:
|
|
valid_volumes:
|
|
- camptickets-android-sdk
|
|
- camptickets-gradle
|
|
- camptickets-npm
|