[ci skip] Boost build speed merge to build-main.yml

This commit is contained in:
7777777_4547
2022-10-29 22:18:16 +08:00
committed by GitHub
parent b316800883
commit ee8a94a899

View File

@@ -24,6 +24,7 @@ jobs:
version: "latest" version: "latest"
java-version: 17 java-version: 17
github-token: "${{ secrets.GITHUB_TOKEN }}" github-token: "${{ secrets.GITHUB_TOKEN }}"
cache: gradle
- name: Configure Git - name: Configure Git
run: | run: |
git config --global user.name "KeYi CI" git config --global user.name "KeYi CI"
@@ -31,10 +32,10 @@ jobs:
chmod u+x gradlew chmod u+x gradlew
- name: Apply patches - name: Apply patches
run: | 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 - name: Build a paperclip jar
run: | 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 - 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" 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 - name: Release Artifacts