Skip to content

Commit 8c62a78

Browse files
committed
Add gradle caching.
1 parent 0d53ec8 commit 8c62a78

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/workflow.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,13 @@ jobs:
3838
uses: actions/setup-java@v1
3939
with:
4040
java-version: 14
41-
41+
- name: Clean cache
42+
if: matrix.os == 'macos-latest'
43+
run: mv ~/.gradle/caches ~/.gradle/.invalid_caches
44+
- uses: actions/cache@v1
45+
with:
46+
path: ~/.gradle/caches
47+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
4248
- name: run action
4349
uses: ./
4450
with:

0 commit comments

Comments
 (0)