Merge pull request 'CI: setup-java v5 and Gradle build cache' (#20) from ci-caching into master

Reviewed-on: #20
This commit was merged in pull request #20.
This commit is contained in:
2026-09-26 02:10:44 +00:00
3 changed files with 14 additions and 7 deletions
+8 -6
View File
@@ -1,12 +1,11 @@
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.
# Compiles every Minecraft version on pull requests, 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. Merges to master aren't re-checked: the PR already
# checked that code.
on:
pull_request:
push:
branches: [master]
jobs:
compile:
@@ -17,8 +16,11 @@ jobs:
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@v4
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 21
+4 -1
View File
@@ -44,8 +44,11 @@ jobs:
fi
echo "Building Saturn Client $MOD_VERSION"
# 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@v4
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 21
+2
View File
@@ -1,5 +1,7 @@
org.gradle.jvmargs=-Xmx3G
org.gradle.parallel=true
# Reuse task outputs (e.g. compiled classes) when inputs haven't changed.
org.gradle.caching=true
# IntelliJ IDEA is not yet fully compatible with configuration cache, see: https://github.com/FabricMC/fabric-loom/issues/1349
org.gradle.configuration-cache=false