forgejo Actions (again)
Re’dorked my CI stuff.
This is my new CI configuration file for an sbt module.
I needed to refine it, which ended up taking much longer than expected to get right. The most significant changes involved switching container images and regenerating my GitHub tokens.
I also had to recreate the action runner system entirely. I was experiencing frequent crashes initially - apparently the Raspberry Pi 3 didn’t have enough memory for Scala/JDK builds. After switching to an old laptop my friend’s ex gave me, everything runs smoothly now.
The configuration is fairly straightforward: it sets up sbt, builds the project, runs tests, and optionally deploys to Git. The deployment works by either reading a remote URL from secrets or skipping the mirror steps entirely.
For future improvements, it might be better to use a pre-built Docker image rather than reconstructing the JDK/sbt environment each time.