From 756aa103bac02c42b10ebf59b0d7bf3f5b810893 Mon Sep 17 00:00:00 2001 From: Pascalpex <68245106+Pascalpex@users.noreply.github.com> Date: Mon, 25 May 2026 12:28:24 +0200 Subject: [PATCH 1/4] Disable Gradle daemon --- .github/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 68b3f60..34d6ed9 100755 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,6 +10,7 @@ jobs: with: java-version: 21.0.11 distribution: 'temurin' + cache: gradle - name: Configure Git run: | git config --global user.email "actions@github.com" @@ -17,9 +18,9 @@ jobs: - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Apply patches - run: ./gradlew applyAllPatches + run: ./gradlew applyAllPatches --no-daemon - name: Generate Paperclip Jar - run: ./gradlew createMojmapPaperclipJar + run: ./gradlew createMojmapPaperclipJar --no-daemon - name: Upload Paperclip uses: actions/upload-artifact@v7.0.1 with: From 03bdd65998a66758f63defa2420b96c4c9551491 Mon Sep 17 00:00:00 2001 From: Pascalpex <68245106+Pascalpex@users.noreply.github.com> Date: Mon, 25 May 2026 12:38:35 +0200 Subject: [PATCH 2/4] Try some things --- .github/workflows/build.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 34d6ed9..f98ece6 100755 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,6 +5,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6.0.2 + with: + fetch-depth: 0 - name: Set up JDK 21 uses: actions/setup-java@v5.2.0 with: @@ -17,10 +19,16 @@ jobs: git config --global user.name "Github Actions" - name: Grant execute permission for gradlew run: chmod +x gradlew + - name: Disable Git Auto GC + run: | + git config --global gc.auto 0 + git config --global maintenance.auto false + - name: Clean Paperweight Caches + run: rm -rf ~/.gradle/caches/paperweight .gradle/caches/paperweight || true - name: Apply patches - run: ./gradlew applyAllPatches --no-daemon + run: ./gradlew applyAllPatches --no-daemon --no-parallel - name: Generate Paperclip Jar - run: ./gradlew createMojmapPaperclipJar --no-daemon + run: ./gradlew createMojmapPaperclipJar --no-daemon --no-parallel - name: Upload Paperclip uses: actions/upload-artifact@v7.0.1 with: From f12e7ee40caeb63c8d6e25185a51085a45af15c4 Mon Sep 17 00:00:00 2001 From: Pascalpex Date: Mon, 25 May 2026 16:55:11 +0200 Subject: [PATCH 3/4] Remove unneeded stuff --- .github/workflows/build.yml | 10 ++-------- build.gradle.kts | 5 ----- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f98ece6..ca00521 100755 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,16 +19,10 @@ jobs: git config --global user.name "Github Actions" - name: Grant execute permission for gradlew run: chmod +x gradlew - - name: Disable Git Auto GC - run: | - git config --global gc.auto 0 - git config --global maintenance.auto false - - name: Clean Paperweight Caches - run: rm -rf ~/.gradle/caches/paperweight .gradle/caches/paperweight || true - name: Apply patches - run: ./gradlew applyAllPatches --no-daemon --no-parallel + run: ./gradlew applyAllPatches --no-daemon - name: Generate Paperclip Jar - run: ./gradlew createMojmapPaperclipJar --no-daemon --no-parallel + run: ./gradlew createMojmapPaperclipJar --no-daemon - name: Upload Paperclip uses: actions/upload-artifact@v7.0.1 with: diff --git a/build.gradle.kts b/build.gradle.kts index 056c480..86c4f50 100755 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -53,15 +53,10 @@ subprojects { maven(leafMavenPublicUrl) } - tasks.withType().configureEach { - isPreserveFileTimestamps = false - isReproducibleFileOrder = true - } tasks.withType().configureEach { options.encoding = Charsets.UTF_8.name() options.release = 21 options.isFork = true - options.forkOptions.memoryMaximumSize = "6g" } tasks.withType().configureEach { options.encoding = Charsets.UTF_8.name() From 15604e08fa576a3b9f7c31fdd50ea46cef0e82c0 Mon Sep 17 00:00:00 2001 From: Pascalpex Date: Mon, 25 May 2026 17:03:43 +0200 Subject: [PATCH 4/4] Prevent git gc --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ca00521..73b9392 100755 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,6 +17,8 @@ jobs: run: | git config --global user.email "actions@github.com" git config --global user.name "Github Actions" + git config --global gc.auto 0 + git config --global maintenance.auto false - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Apply patches