Skip to content

Commit

Permalink
Cache less in Github Actions workflow
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
williewillus committed Sep 24, 2023
1 parent a4f190d commit 76dac2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ subprojects {

repositories {
mavenCentral()

maven {
name = 'Sponge / Mixin'
url = 'https://repo.spongepowered.org/repository/maven-public/'
Expand Down

0 comments on commit 76dac2c

Please sign in to comment.