[ci skip] Boost build speed merge to build-main.yml
This commit is contained in:
5
.github/workflows/build-main.yml
vendored
5
.github/workflows/build-main.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user