Skip to content

Commit 1ceeac4

Browse files
committed
Cache gradle artifacts and wrapper
1 parent 801fcbb commit 1ceeac4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/pull_request.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@ jobs:
4141
- name: Generate sources (make) (Temporary)
4242
# TODO: this should be triggered by the respective builds
4343
run: make jextract-run
44+
- name: Cache Gradle packages
45+
uses: actions/cache@v3
46+
with:
47+
path: |
48+
~/.gradle/caches
49+
~/.gradle/wrapper
50+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
51+
restore-keys: |
52+
${{ runner.os }}-gradle-
4453
- name: Gradle build
4554
run: ./gradlew build --no-daemon
4655

0 commit comments

Comments
 (0)