@@ -12,76 +12,29 @@ jobs:
1212 runs-on : blacksmith-8vcpu-ubuntu-2204
1313 env :
1414 BUILD_NUMBER : ${{ github.run_number }}
15- GRADLE_MEMORY : " -Xmx4g -XX:MaxMetaspaceSize=2g "
15+ GRAALVM_ARGS : " -Dgraal.CompilerConfiguration=enterprise -Dgraal.UsePriorityInlining=true -Dgraal.Vectorization=true -Dgraal.OptDuplication=true --add-modules jdk.incubator.vector "
1616 steps :
1717 - name : Checkout repository
18- uses : actions/checkout@v5
18+ uses : actions/checkout@v6
1919 with :
2020 fetch-depth : 0
2121
22- - name : Setup Gradle Cache
23- uses : actions/checkout@v4
22+ - name : Set up GraalVM JDK 21
23+ uses : graalvm/setup-graalvm@v1
2424 with :
25- path : |
26- ~/.gradle/caches/modules-2
27- ~/.gradle/caches/jars-*
28- ~/.gradle/caches/transforms-*
29- ~/.gradle/wrapper
30- ~/.gradle/build-cache-*
31- ~/.gradle/configuration-cache-*
32- .gradle/patchCache
33- .gradle/patched
34- key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', 'patches/**/*.patch') }}
35- restore-keys : |
36- ${{ runner.os }}-gradle-
37-
38- - name : Gradle Cache Cleanup
39- run : |
40- mkdir -p ~/.gradle/caches/modules-2
41- [ -f ~/.gradle/caches/modules-2/modules-2.lock ] && rm -f ~/.gradle/caches/modules-2/modules-2.lock
42- find ~/.gradle/caches -name "*.lock" -type f -delete || echo "No lock files found"
43-
44- - name : Setup java
45- uses : actions/setup-java@v5
46- with :
47- distribution : ' temurin'
48- java-version : ' 21'
25+ java-version : 21
26+ github-token : " ${{ secrets.GITHUB_TOKEN }}"
27+ cache : gradle
4928
5029 - name : Configure Git
5130 run : |
5231 git config --global user.email "[email protected] " 5332 git config --global user.name "Github Actions"
54- git config --global core.preloadindex true
55- git config --global core.fscache true
56- git config --global gc.auto 256
57-
58- - name : Configure Gradle Properties
59- run : |
60- mkdir -p ~/.gradle
61- echo "org.gradle.caching=true" >> ~/.gradle/gradle.properties
62- echo "org.gradle.configuration-cache=true" >> ~/.gradle/gradle.properties
63- echo "org.gradle.configuration-cache.problems=warn" >> ~/.gradle/gradle.properties
64- echo "org.gradle.jvmargs=${{ env.GRADLE_MEMORY }} -Dfile.encoding=UTF-8" >> ~/.gradle/gradle.properties
65- echo "org.gradle.parallel=true" >> ~/.gradle/gradle.properties
66- echo "org.gradle.daemon=true" >> ~/.gradle/gradle.properties
67- # This is only need if we create custom gradle.properies in home directory
68- echo "leafUsername=${{ secrets.REPO_USER }}" >> ~/.gradle/gradle.properties
69- echo "leafPassword=${{ secrets.REPO_PASSWORD }}" >> ~/.gradle/gradle.properties
7033
7134 - name : Apply patches
72- run : |
73- PARALLELISM=$(($(nproc) * 2))
74- ./gradlew -Dorg.gradle.jvmargs="${{ env.GRADLE_MEMORY }}" \
75- -Dleaf.patcher.parallelism=$PARALLELISM \
76- -Dleaf.patcher.incremental=true \
77- applyAllPatches \
78- --stacktrace --parallel \
79- --max-workers=$PARALLELISM \
80- --build-cache \
81- --no-daemon
82-
35+ run : ./gradlew -Dorg.gradle.jvmargs="${{ env.GRAALVM_ARGS }}" applyAllPatches --stacktrace --no-daemon
8336 - name : Create MojmapPaperclipJar
84- run : ./gradlew createMojmapPaperclipJar --stacktrace --parallel --no-daemon
37+ run : ./gradlew -Dorg.gradle.jvmargs="${{ env.GRAALVM_ARGS }}" createMojmapPaperclipJar --stacktrace --no-daemon
8538
8639 - name : Prepare release notes and artifacts
8740 run : |
9346 BUILD_NUMBER : ${{ env.BUILD_NUMBER }}
9447
9548 - name : Upload Leaf
96- uses : actions/upload-artifact@v5
49+ uses : actions/upload-artifact@v6
9750 with :
9851 name : Leaf 1.21.8
9952 path : ./leaf-1.21.8-${{ env.BUILD_NUMBER }}.jar
0 commit comments