ci: fix CI on Java 25 and port the release workflows to Forgejo #24

Merged
pistonmaster merged 2 commits from ci/forgejo-release into main 2026-11-25 11:43:20 +00:00
Owner

Two commits that get AnarchyClient's CI and releases working on Forgejo.

CI fix

CI has failed since 21 November, first on GitHub and then on Forgejo.

  • Java version: CI installed Java 27 (Renovate #7), but the build targets a Java 25 toolchain. Spotless runs Palantir Java Format 2.103.0 on the Gradle JVM, and Palantir breaks on Java 27's compiler internals (NoSuchFieldError on JCCompilationUnit, 794 errors). On the Forgejo runner Gradle also couldn't find a Java 25 toolchain. CI now installs Java 25.
  • Checksums: gradle/verification-metadata.xml lacked entries for lwjgl-freetype 3.4.3-mojang-2.15.0 and for POMs that Spotless resolves, so strict verification failed on a clean machine. All 15 added checksums match the files on Maven Central or libraries.minecraft.net.
  • Renovate: major Java updates for CI are disabled, so CI and the toolchain change together by hand.

Tested in ghcr.io/catthehacker/ubuntu:act-24.04, the runner image, with an empty Gradle home: ./gradlew build and the full client gametest suite pass.

Release port

  • Releases: Forgejo's forgejo-release action replaces action-gh-release, and the notes link the jar on git.6b6t.org.
  • Provenance: a SHA256SUMS file attached to each release replaces GitHub build provenance. The docs explain how to check it, and releases up to 0.3.0 keep their GitHub provenance.
  • Changelog: .github/scripts/changelog.py builds it from git history instead of the GitHub API, with the same categories.
  • Version bumps: set-version pushes them as release-bot, the only account allowed to push to main.
  • Unchanged: the reproducible double build.

The release steps, the bot push to a protected main and the changelog script were tested end to end in a temporary repo with the same branch protection. That repo is deleted.

🤖 Generated with Claude Code

Two commits that get AnarchyClient's CI and releases working on Forgejo. ## CI fix CI has failed since 21 November, first on GitHub and then on Forgejo. - **Java version:** CI installed Java 27 (Renovate #7), but the build targets a Java 25 toolchain. Spotless runs Palantir Java Format 2.103.0 on the Gradle JVM, and Palantir breaks on Java 27's compiler internals (`NoSuchFieldError` on `JCCompilationUnit`, 794 errors). On the Forgejo runner Gradle also couldn't find a Java 25 toolchain. CI now installs Java 25. - **Checksums:** `gradle/verification-metadata.xml` lacked entries for `lwjgl-freetype 3.4.3-mojang-2.15.0` and for POMs that Spotless resolves, so strict verification failed on a clean machine. All 15 added checksums match the files on Maven Central or libraries.minecraft.net. - **Renovate:** major Java updates for CI are disabled, so CI and the toolchain change together by hand. Tested in `ghcr.io/catthehacker/ubuntu:act-24.04`, the runner image, with an empty Gradle home: `./gradlew build` and the full client gametest suite pass. ## Release port - **Releases:** Forgejo's `forgejo-release` action replaces `action-gh-release`, and the notes link the jar on git.6b6t.org. - **Provenance:** a `SHA256SUMS` file attached to each release replaces GitHub build provenance. The docs explain how to check it, and releases up to 0.3.0 keep their GitHub provenance. - **Changelog:** `.github/scripts/changelog.py` builds it from git history instead of the GitHub API, with the same categories. - **Version bumps:** `set-version` pushes them as `release-bot`, the only account allowed to push to `main`. - **Unchanged:** the reproducible double build. The release steps, the bot push to a protected `main` and the changelog script were tested end to end in a temporary repo with the same branch protection. That repo is deleted. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
CI has failed since 21 November, first on GitHub and then on Forgejo.

- CI installed Java 27 while the build targets a Java 25 toolchain.
  Spotless runs Palantir Java Format on the Gradle JVM, and Palantir
  2.103.0 breaks on Java 27's compiler internals (NoSuchFieldError on
  JCCompilationUnit). On the Forgejo runner Gradle also could not find
  a Java 25 toolchain. CI now installs Java 25, which fixes both.
- gradle/verification-metadata.xml lacked checksums for
  lwjgl-freetype 3.4.3-mojang-2.15.0 and for POMs that Spotless
  resolves, so strict verification failed on a clean machine. Every
  added checksum matches the file on Maven Central or
  libraries.minecraft.net.
- Renovate no longer proposes major Java updates for CI, so CI and the
  toolchain change together by hand.

Tested in ghcr.io/catthehacker/ubuntu:act-24.04, the runner image, with
an empty Gradle home: ./gradlew build and the client gametests pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
ci: port the release workflows to Forgejo
Some checks failed
Commit style / Conventional Commits (pull_request) Successful in 6s
Workflow security / Audit workflows with zizmor (pull_request) Successful in 11s
Publish website / build (pull_request) Failing after 3s
Publish website / deploy (pull_request) Has been skipped
CI / build (push) Successful in 4m23s
Publish website / build (push) Failing after 1s
Workflow security / Audit workflows with zizmor (push) Successful in 9s
CI / client-gametest (push) Successful in 13m2s
Publish website / deploy (push) Has been skipped
b45fdfe6b0
The release workflow relied on GitHub-only features.

- Create the release with Forgejo's forgejo-release action instead of
  action-gh-release, and link the jar on this forge.
- Replace GitHub build provenance with a SHA256SUMS file attached to
  each release. The docs explain how to check it. Releases up to 0.3.0
  keep their GitHub provenance.
- Build the changelog from git history with .github/scripts/changelog.py
  instead of the GitHub API. It groups the commits since the previous
  tag by Conventional Commits type, as before.
- set-version pushes the version bump as release-bot, the only account
  allowed to push to main, with plain git instead of
  git-auto-commit-action.
- The release builds on Java 25, like CI.

The reproducible double build is unchanged. The forgejo-release steps,
the bot push to a protected main and the changelog script were tested
end to end in a temporary repository with the same branch protection.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
approval-bot left a comment

Automatic approval. Required checks still have to pass before merging.

Automatic approval. Required checks still have to pass before merging.
pistonmaster deleted branch ci/forgejo-release 2026-11-25 11:43:20 +00:00
Sign in to join this conversation.
No description provided.