Skip to content

Commit 4a043bb

Browse files
committed
ci: add Gradle and Loom caching for faster builds
1 parent b1654dd commit 4a043bb

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,22 @@ jobs:
1919
with:
2020
java-version: '21'
2121
distribution: 'temurin'
22+
cache: 'gradle'
2223

24+
- name: Cache Minecraft/Loom
25+
uses: actions/cache@v4
26+
with:
27+
path: |
28+
~/.gradle/caches/fabric-loom
29+
~/.gradle/loom-cache
30+
key: ${{ runner.os }}-loom-${{ hashFiles('**/gradle.properties') }}
31+
restore-keys: |
32+
${{ runner.os }}-loom-
33+
2334
- name: Setup Gradle
2435
uses: gradle/actions/setup-gradle@v3
36+
with:
37+
cache-read-only: false
2538

2639
- name: Make gradlew executable
2740
run: chmod +x ./gradlew

0 commit comments

Comments
 (0)