Skip to content

Commit 5547dc4

Browse files
committed
pay no attention to the man behind the curtain (C) whatthecommit.com
1 parent c1134ea commit 5547dc4

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,22 @@ jobs:
2525
gradle-version: 6.1.1
2626
arguments: clean build -S
2727
# https://github.com/actions/cache/blob/master/examples.md#java---gradle
28-
- name: Cache
28+
- name: Cache npm
29+
uses: actions/cache@v1
30+
with:
31+
path: ~/.npm
32+
#key: ${{ matrix.java }}-${{ matrix.os }}-cache
33+
key: java-${{ matrix.java }}-${{ runner.os }}-${{ matrix.os }}-gradle-${{ hashFiles('**/.npm/**') }}
34+
restore-keys: |
35+
java-${{ matrix.java }}-${{ runner.os }}-${{ matrix.os }}-gradle-
36+
- name: Cache gradle
2937
uses: actions/cache@v1
3038
with:
3139
path: ~/.gradle
3240
#key: ${{ matrix.java }}-${{ matrix.os }}-cache
33-
key: ${{ runner.os }}-${{ matrix.java }}-gradle-${{ hashFiles('**/.gradle/**') }}
41+
key: java-${{ matrix.java }}-${{ runner.os }}-${{ matrix.os }}-gradle-${{ hashFiles('**/.gradle/**') }}
3442
restore-keys: |
35-
${{ runner.os }}-${{ matrix.java }}-gradle-
36-
# key: ${{ runner.os }}-${{ matrix.java }}-${{ matrix.os }}-gradle-${{ hashFiles('**/*.gradle') }}
37-
# restore-keys: |
38-
# ${{ runner.os }}-${{ matrix.java }}-${{ matrix.os }}-gradle-
43+
java-${{ matrix.java }}-${{ runner.os }}-${{ matrix.os }}-gradle-
3944
## This is also works:
4045
#- name: Cache
4146
# uses: actions/cache@v1.1.2

0 commit comments

Comments
 (0)