Files
saturnclient/.gitea/workflows/check.yml
T
selimaj-devandclaude 2ecb4f80ea
Check / compile (pull_request) Successful in 9m39s
Move setup-java to v5 and enable Gradle's build cache
- setup-java v4 is deprecated; use v5 (still with `cache: gradle`,
  which works once job containers can reach the runner's cache server).
- Enable Gradle's build cache (org.gradle.caching) so unchanged
  compilations are restored from cache instead of re-run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-26 03:19:11 +02:00

35 lines
995 B
YAML

name: Check
# Compiles every Minecraft version on pull requests and on pushes to master,
# so a change that breaks one version (e.g. a missed or bad port) fails before
# it's merged instead of in the release build.
on:
pull_request:
push:
branches: [master]
jobs:
compile:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
# The JDK comes from the runner's tool cache. `cache: gradle` stores Gradle's
# dependencies, Loom's Minecraft cache and the build cache in the runner's
# actions cache.
- name: Set up Java 21
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 21
cache: gradle
- name: Compile all versions
run: |
chmod +x gradlew
# --continue reports every version that fails, not just the first.
./gradlew compileJava --no-daemon --stacktrace --continue