Skip to content

Commit dc491c9

Browse files
committed
Update Github workflow.
It should no longer be deprecated and broken.
1 parent f455cff commit dc491c9

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

.github/workflows/gradle.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,24 @@ jobs:
1616

1717
steps:
1818
# Setup
19-
- uses: actions/checkout@v2
20-
- name: Set up JDK 1.8
21-
uses: actions/setup-java@v1
19+
- uses: actions/checkout@v4
20+
- name: Set up JDK 17
21+
uses: actions/setup-java@v4
2222
with:
23-
java-version: 1.8
23+
java-version: '17'
24+
distribution: 'temurin'
2425
- name: Grant execute permission for gradlew
2526
run: chmod +x gradlew
2627
# Cache
2728
- name: Cache Gradle packages
28-
uses: actions/cache@v2
29+
uses: actions/cache@v4
2930
with:
30-
path: ~/.gradle/caches
31-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
32-
restore-keys: ${{ runner.os }}-gradle
31+
path: |
32+
~/.gradle/caches
33+
~/.gradle/wrapper
34+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
35+
restore-keys: |
36+
${{ runner.os }}-gradle-
3337
# Build
3438
- name: Build
3539
run: ./gradlew build --continue

0 commit comments

Comments
 (0)