File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments