Skip to content

Commit 7726b9e

Browse files
committed
Update build workflow
1 parent 007b82a commit 7726b9e

File tree

1 file changed

+21
-20
lines changed

1 file changed

+21
-20
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,27 @@ jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3
1616

17-
- name: set up JDK
18-
uses: actions/setup-java@v1
19-
with:
20-
java-version: 11
17+
- name: set up JDK
18+
uses: actions/setup-java@v3
19+
with:
20+
distribution: zulu
21+
java-version: 17
2122

22-
- name: Cache Gradle and wrapper
23-
uses: actions/cache@v2
24-
with:
25-
path: |
26-
~/.gradle/caches
27-
~/.gradle/wrapper
28-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
29-
restore-keys: |
30-
${{ runner.os }}-gradle-
31-
32-
- name: Make Gradle executable
33-
run: chmod +x ./gradlew
34-
35-
- name: Build with Gradle
36-
run: ./gradlew build
23+
- name: Cache Gradle and wrapper
24+
uses: actions/cache@v2
25+
with:
26+
path: |
27+
~/.gradle/caches
28+
~/.gradle/wrapper
29+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
30+
restore-keys: |
31+
${{ runner.os }}-gradle-
32+
33+
- name: Make Gradle executable
34+
run: chmod +x ./gradlew
35+
36+
- name: Build with Gradle
37+
run: ./gradlew build
3738

0 commit comments

Comments
 (0)