From 76dac2ca1c3d1b94bf5d2dde3a7bb6798729aef5 Mon Sep 17 00:00:00 2001 From: Vincent Lee Date: Sun, 24 Sep 2023 10:24:55 -0700 Subject: [PATCH] Cache less in Github Actions workflow The current cache bundle is greater than MAX_INT32, which apparently works but then fails to decompress and thus is completely useless. Instead, just cache the joined/remapped Minecraft jars, remapped libraries, and assets, which are the slowest/flakiest parts. Normal libraries such as fastutil, etc. will be redownloaded each time. Dummy bumps build.gradle to bust the existing cache. --- .github/workflows/gradle.yml | 5 +++-- build.gradle | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 705972572d..182833c583 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -18,8 +18,9 @@ jobs: uses: actions/cache@v2 with: path: | - ~/.gradle/caches - ~/.gradle/wrapper + ~/.gradle/caches/VanillaGradle/ + ~/.gradle/caches/fabric-loom/ + ~/.gradle/caches/forge_gradle/ ./.gradle/loom-cache/remapped-mods key: ${{ runner.os }}-gradle-${{ hashFiles('**/build.gradle', '**/gradle-wrapper.properties') }} - name: Check lang files diff --git a/build.gradle b/build.gradle index 44f77df5eb..0fa338ba7e 100644 --- a/build.gradle +++ b/build.gradle @@ -13,7 +13,6 @@ subprojects { repositories { mavenCentral() - maven { name = 'Sponge / Mixin' url = 'https://repo.spongepowered.org/repository/maven-public/'