Skip to content

Commit 552cfc4

Browse files
committed
Add caching to github workflow
1 parent 6b69a50 commit 552cfc4

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ jobs:
2121
distribution: 'temurin'
2222
- name: make gradle wrapper executable
2323
run: chmod +x ./gradlew
24+
- name: Cache Gradle
25+
id: cache-gradle
26+
uses: actions/cache@v4
27+
with:
28+
path: |
29+
~/.gradle/caches
30+
${{ github.workspace }}/.gradle
31+
key: ${{ runner.os }}-gradle-${{ github.sha }}
32+
restore-keys:
33+
${{ runner.os }}-gradle-
2434
- name: build
2535
run: ./gradlew build
2636
- name: capture build artifacts

0 commit comments

Comments
 (0)