Skip to content

Commit 61e052c

Browse files
authored
build: add gradle cache
1 parent da244e1 commit 61e052c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ jobs:
2323
path: ~/.sonar/cache
2424
key: ${{ runner.os }}-sonar
2525
restore-keys: ${{ runner.os }}-sonar
26+
- name: Cache Gradle packages
27+
uses: actions/cache@v1
28+
with:
29+
path: ~/.gradle/caches
30+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
31+
restore-keys: ${{ runner.os }}-gradle
2632
- name: Build and analyze
2733
env:
2834
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any

0 commit comments

Comments
 (0)