Skip to content

Commit efc55b9

Browse files
committed
build(ci): use inbuilt caching of setup-java and move to temurin
1 parent aeef90b commit efc55b9

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/gradle.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@ jobs:
1313
- name: Set up JDK ${{ matrix.jdk }}
1414
uses: actions/setup-java@v4
1515
with:
16-
distribution: 'zulu'
16+
distribution: 'temurin'
1717
java-version: ${{ matrix.jdk }}
18-
- name: Cache Gradle packages
19-
uses: actions/cache@v4
20-
with:
21-
path: ~/.gradle/caches
22-
key: ${{ matrix.os }}-gradle-jdk${{ matrix.jdk }}-${{ hashFiles('**/*.gradle.kts') }}
23-
restore-keys: ${{ matrix.os }}-gradle-jdk${{ matrix.jdk }}
18+
cache: 'gradle'
19+
#- name: Cache Gradle packages
20+
# uses: actions/cache@v4
21+
# with:
22+
# path: [~/.gradle/caches, ~/.gradle/wrapper]
23+
# key: ${{ matrix.os }}-gradle-jdk${{ matrix.jdk }}-${{ hashFiles('**/*.gradle.kts') }}
24+
# restore-keys: ${{ matrix.os }}-gradle-jdk${{ matrix.jdk }}
2425
- name: Grant execute permission for gradlew
2526
run: chmod +x gradlew
2627
- name: Execute tests

0 commit comments

Comments
 (0)