Skip to content

Commit

Permalink
fix: caching gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
jbj338033 committed Jul 24, 2024
1 parent e5f0d4f commit 44fb03d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,22 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Java
- name: Setup JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'

- name: Gradle Caching
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
run: |
chmod +x ./gradlew
Expand Down

0 comments on commit 44fb03d

Please sign in to comment.