Skip to content

Commit

Permalink
Add cache to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravis96 committed Jun 2, 2024
1 parent dcfacc1 commit 2782ef0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ jobs:
distribution: adopt
java-version: '17'

- name: Cache Gradle
uses: actions/cache@v4.0.2
with:
path: ~/.gradle/caches
key: >-
${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*',
'**/gradle-wrapper.properties') }}
restore-keys: '${{ runner.os }}-gradle-'

- name: Grant execute permission for gradlew
run: chmod +x gradlew

Expand Down

0 comments on commit 2782ef0

Please sign in to comment.