File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,30 +12,26 @@ jobs:
1212 matrix :
1313 # Use these Java versions
1414 java : [
15- 17, # Current Java LTS & minimum supported by Minecraft
1615 21, # Current Java LTS
1716 ]
18- # and run on both Linux and Windows
19- os : [ubuntu-22.04, windows-2022]
20- runs-on : ${{ matrix.os }}
17+ runs-on : ubuntu-22.04
2118 steps :
2219 - name : checkout repository
2320 uses : actions/checkout@v4
2421 - name : validate gradle wrapper
25- uses : gradle/wrapper-validation-action@v1
22+ uses : gradle/wrapper-validation-action@v2
2623 - name : setup jdk ${{ matrix.java }}
2724 uses : actions/setup-java@v4
2825 with :
2926 java-version : ${{ matrix.java }}
3027 distribution : ' microsoft'
3128 - name : make gradle wrapper executable
32- if : ${{ runner.os != 'Windows' }}
3329 run : chmod +x ./gradlew
3430 - name : build
3531 run : ./gradlew build
3632 - name : capture build artifacts
37- if : ${{ runner.os == 'Linux' && matrix.java == '21' }} # Only upload artifacts built from latest java on one OS
38- uses : actions/upload-artifact@v3
33+ if : ${{ matrix.java == '21' }} # Only upload artifacts built from latest java
34+ uses : actions/upload-artifact@v4
3935 with :
4036 name : Artifacts
41- path : build/libs/
37+ path : build/libs/
You can’t perform that action at this time.
0 commit comments