Move setup-java to v5 and enable Gradle's build cache
Check / compile (pull_request) Successful in 9m39s
Check / compile (pull_request) Successful in 9m39s
- 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]>
This commit is contained in:
@@ -17,8 +17,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: true
|
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
|
- name: Set up Java 21
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version: 21
|
java-version: 21
|
||||||
|
|||||||
@@ -44,8 +44,11 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
echo "Building Saturn Client $MOD_VERSION"
|
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
|
- name: Set up Java 21
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v5
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version: 21
|
java-version: 21
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
org.gradle.jvmargs=-Xmx3G
|
org.gradle.jvmargs=-Xmx3G
|
||||||
org.gradle.parallel=true
|
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
|
# IntelliJ IDEA is not yet fully compatible with configuration cache, see: https://github.com/FabricMC/fabric-loom/issues/1349
|
||||||
org.gradle.configuration-cache=false
|
org.gradle.configuration-cache=false
|
||||||
|
|||||||
Reference in New Issue
Block a user