Skip to content

Commit 6b2079d

Browse files
committed
[ALL] Cache gradle dependencies
1 parent a77b551 commit 6b2079d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/gradle.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
ORG_GRADLE_PROJECT_customUntilBuild: "${{ matrix.until_build }}"
2121

2222
runs-on: ubuntu-latest
23-
23+
2424
strategy:
25-
matrix:
25+
matrix:
2626
include:
2727
- idea_version: "IU-2020.2"
2828
php_plugin_version: "202.6397.94"
@@ -37,6 +37,12 @@ jobs:
3737
uses: actions/setup-java@v1
3838
with:
3939
java-version: 1.8
40+
- name: Cache Gradle packages
41+
uses: actions/cache@v2
42+
with:
43+
path: ~/.gradle/caches
44+
key: ${{ runner.os }}-${{ matrix.idea_version }}-${{ matrix.php_plugin_version }}-gradle-${{ hashFiles('**/*.gradle') }}
45+
restore-keys: ${{ runner.os }}-gradle
4046
- name: Grant execute permission for gradlew
4147
run: chmod +x gradlew
4248
- name: Build with Gradle

0 commit comments

Comments
 (0)