Skip to content

Commit 2dfc27b

Browse files
committed
Include java version in gradle cache
1 parent 8921382 commit 2dfc27b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/gradle.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ jobs:
3030
path: |
3131
~/.gradle/caches
3232
~/.gradle/wrapper
33-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
33+
key: ${{ runner.os }}-${{ martix.java }}-gradle-${{ hashFiles('**/*.gradle*') }}
3434
restore-keys: |
35-
${{ runner.os }}-gradle-
35+
${{ runner.os }}-${{ martix.java }}-gradle-
3636
- name: Make gradlew executable (non-Windows only)
3737
if: matrix.os != 'windows-latest'
3838
run: chmod +x ./gradlew
3939
- name: Gradle Check (non-Windows)
4040
if: matrix.os != 'windows-latest'
41-
run: ./gradlew --info --stacktrace check
41+
run: ./gradlew --info check
4242
- name: Gradle Check (Windows)
4343
if: matrix.os == 'windows-latest'
4444
shell: cmd

0 commit comments

Comments
 (0)