9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-25 09:59:15 +00:00

cache configuration

This commit is contained in:
Taiyou06
2025-03-10 21:10:42 +01:00
parent 94c74fae3d
commit 9febd5a86d

View File

@@ -75,6 +75,11 @@ jobs:
PARALLELISM=$(($(nproc) * 2))
echo "Using parallelism: $PARALLELISM"
# Enable configuration cache (crucial for task graph caching)
mkdir -p ~/.gradle
echo "org.gradle.configuration-cache=true" >> ~/.gradle/gradle.properties
echo "org.gradle.configuration-cache.max-problems=5" >> ~/.gradle/gradle.properties
# Run patch application with optimized settings
./gradlew -Dorg.gradle.jvmargs="${{ env.GRAALVM_ARGS }} ${{ env.GRADLE_MEMORY }}" \
-Dleaf.patcher.parallelism=$PARALLELISM \
@@ -82,7 +87,8 @@ jobs:
applyAllPatches \
--stacktrace --parallel \
--max-workers=$PARALLELISM \
--build-cache
--build-cache \
--configuration-cache
- name: Create MojmapPaperclipJar
run: ./gradlew -Dorg.gradle.jvmargs="${{ env.GRAALVM_ARGS }} ${{ env.GRADLE_MEMORY }}" createMojmapPaperclipJar --stacktrace --parallel --$PARALLELISM