Skip to content

Commit 6c90730

Browse files
sullistschuchortdev
authored andcommitted
setup-java v2 cache parameter
1 parent 034d20a commit 6c90730

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,7 @@ jobs:
3232
with:
3333
distribution: 'adopt'
3434
java-version: ${{ matrix.java }}
35-
- name: Cache Gradle packages
36-
uses: actions/cache@v2.1.6
37-
with:
38-
path: ~/.gradle/caches
39-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
40-
restore-keys: ${{ runner.os }}-gradle
35+
cache: 'gradle'
4136
- name: print Java version
4237
run: java -version
4338
- name: Set JVM options for JDK 16
@@ -70,12 +65,7 @@ jobs:
7065
with:
7166
distribution: 'adopt'
7267
java-version: ${{ matrix.java }}
73-
- name: Cache Gradle packages
74-
uses: actions/cache@v2.1.6
75-
with:
76-
path: ~/.gradle/caches
77-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
78-
restore-keys: ${{ runner.os }}-gradle
68+
cache: 'gradle'
7969
- name: print Java version
8070
run: java -version
8171
- name: Set JVM options for JDK 16
@@ -114,12 +104,7 @@ jobs:
114104
with:
115105
distribution: 'adopt'
116106
java-version: 11
117-
- name: Cache Gradle packages
118-
uses: actions/cache@v2.1.6
119-
with:
120-
path: ~/.gradle/caches
121-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
122-
restore-keys: ${{ runner.os }}-gradle
107+
cache: 'gradle'
123108
- name: Set git config
124109
run: |
125110
git config user.name github-actions

0 commit comments

Comments
 (0)