File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -12,26 +12,26 @@ jobs:
12
12
matrix :
13
13
# Use these Java versions
14
14
java : [
15
- 17 , # Current Java LTS & minimum supported by Minecraft
15
+ 21 , # Current Java LTS
16
16
]
17
- os : [ubuntu-20.04]
18
- runs-on : ${{ matrix.os }}
17
+ runs-on : ubuntu-22.04
19
18
steps :
20
19
- name : checkout repository
21
20
uses : actions/checkout@v4
22
21
- name : validate gradle wrapper
23
- uses : gradle/wrapper-validation-action@v1
22
+ uses : gradle/wrapper-validation-action@v2
24
23
- name : setup jdk ${{ matrix.java }}
25
24
uses : actions/setup-java@v4
26
25
with :
27
26
java-version : ${{ matrix.java }}
27
+ distribution : ' microsoft'
28
28
- name : make gradle wrapper executable
29
29
run : chmod +x ./gradlew
30
30
- name : build
31
31
run : ./gradlew build
32
32
- name : capture build artifacts
33
- if : ${{ matrix.java == '17 ' }} # Only upload artifacts built from latest java
33
+ if : ${{ matrix.java == '21 ' }} # Only upload artifacts built from latest java
34
34
uses : actions/upload-artifact@v4
35
35
with :
36
36
name : Artifacts
37
- path : build/libs/
37
+ path : build/libs/
You can’t perform that action at this time.
0 commit comments