https://github.com/crueter-ci/forgejo-runner
Scripts to set up Linux and Android runners on Forgejo/Gitea
https://github.com/crueter-ci/forgejo-runner
forgejo
Last synced: about 2 months ago
JSON representation
Scripts to set up Linux and Android runners on Forgejo/Gitea
- Host: GitHub
- URL: https://github.com/crueter-ci/forgejo-runner
- Owner: crueter-ci
- License: gpl-3.0
- Created: 2025-06-11T12:36:38.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2025-06-24T06:49:49.000Z (4 months ago)
- Last Synced: 2025-08-20T00:29:19.007Z (about 2 months ago)
- Topics: forgejo
- Language: Shell
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# forgejo-runner-scripts
Scripts to set up Linux and Android runners on Forgejo/Gitea.This is currently only compatible with Arch Linux, but can be very easily adapted to support Debian or other server distros.
# Setup
- The current `pkg.txt` contains all packages needed for building & AppImage packing on Eden and other Yuzu forks. Modify to your needs.
* Remove the aarch64 packages if you do not wish to enable cross-compilation.## Optional
- Copy any necessary configuration directories into `config`
* e.g. shell
- Copy any necessary local scripts/bin files into `local/bin`
* e.g. packaging scripts (linuxdeploy, etc)
- Copy any necessary shared data into `local/share`
* e.g. gnupg
- Copy any necessary SSH keys into `ssh`
* e.g. for private repos## Android
- The exact setup for Android depends on what project you are building.
- You must select a java version beforehand. The default `pkg.txt` installs Java 17.
* e.g. `sudo pacman -S jdk21-openjdk && sudo archlinux-java set java-21-openjdk`
- All android-related files should go in the `android` directory.
* `mkdir android`
- Generally, you will at least want a keystore. Use the provided `./genkeystore.sh` script to do so.
* Some projects may require the alias and password files, but they should instead use repository secrets. Ensure your password and alias match up.
- Modify `setup-android.sh` to use your desired JDK version as well as Android SDK packages.## Finally...
Your final directory should look something like this:```
| android
| android.alias
| android.keystore
| android.pass
| config
| ...
| local
| share
| ...
| bin
| ...
| pkg.txt
| runner
| .runner
| config.yml
| runner.service
| wait-online
| setup-android.sh
| setup.sh
| ssh
| config
| id_ed25519
| id_ed25519.pub```
If everything looks good, copy this entire directory onto your desired server. Then, run `./setup.sh` to install packages and setup all the necessary directories/configurations. This will additionally start and enable the Forgejo runner.
- Note that sudo access is required.For Android runners, additionally run `./setup-android.sh`.
Your runner is now good to go!