From ee8a94a8990a24f4826ccc3fc229fc218dca659f Mon Sep 17 00:00:00 2001 From: 7777777_4547 <83630775+7777777-4547@users.noreply.github.com> Date: Sat, 29 Oct 2022 22:18:16 +0800 Subject: [PATCH] [ci skip] Boost build speed merge to build-main.yml --- .github/workflows/build-main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-main.yml b/.github/workflows/build-main.yml index a989ee2..f93e388 100644 --- a/.github/workflows/build-main.yml +++ b/.github/workflows/build-main.yml @@ -24,6 +24,7 @@ jobs: version: "latest" java-version: 17 github-token: "${{ secrets.GITHUB_TOKEN }}" + cache: gradle - name: Configure Git run: | git config --global user.name "KeYi CI" @@ -31,10 +32,10 @@ jobs: chmod u+x gradlew - name: Apply patches run: | - ./gradlew applyPatches --stacktrace --no-daemon + ./gradlew -Dorg.gradle.jvmargs="-Dgraal.CompilerConfiguration=enterprise -Dgraal.UsePriorityInlining=true -Dgraal.Vectorization=true -Dgraal.OptDuplication=true --add-modules jdk.incubator.vector" applyPatches --stacktrace --no-daemon - name: Build a paperclip jar run: | - ./gradlew createReobfPaperclipJar --stacktrace --no-daemon + ./gradlew -Dorg.gradle.jvmargs="-Dgraal.CompilerConfiguration=enterprise -Dgraal.UsePriorityInlining=true -Dgraal.Vectorization=true -Dgraal.OptDuplication=true --add-modules jdk.incubator.vector" createReobfPaperclipJar --stacktrace --no-daemon - name: Rename Jar run: "mv build/libs/keyi-paperclip-${{ env.MC_VERSION }}-R0.1-SNAPSHOT-reobf.jar build/libs/keyi-${{ env.ref }}-${{ env.MC_VERSION }}-${{ env.workflow }}.jar" - name: Release Artifacts