Skip to content

Commit a0bd909

Browse files
authored
make cache when build
1 parent 37570ae commit a0bd909

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/build_snapshot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ jobs:
2727

2828
- name: Grant Execute Permission for gradlew
2929
run: chmod +x ./gradlew
30+
- name: Cache Gradle
31+
uses: actions/cache@v3
32+
with:
33+
path:
34+
~/gradle/
35+
~/.gradle/
36+
~/build/
37+
key: ${{hashFiles('build.gradle') }}-${{hashFiles('gradle.properties') }}
38+
restore-keys: |
39+
${{hashFiles('build.gradle') }}-${{hashFiles('gradle.properties') }}
3040
- name: Change mod version
3141
run: sed -i "s/mod_version.*=.*/mod_version = snapshot-${{ github.run_number}}/g" gradle.properties
3242
- name: Setup Java

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
org.gradle.jvmargs = -Xmx3G
66

77
java_version = 21
8-
cleanroom_version=0.2.3-alpha
8+
cleanroom_version=0.2.4-alpha
99

1010
# Mapping Properties
1111
mapping_channel= stable

0 commit comments

Comments
 (0)