Skip to content

Commit 0018037

Browse files
authored
updated gh aaction
1 parent e63bbd1 commit 0018037

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,29 @@ jobs:
1212
matrix:
1313
# Use these Java versions
1414
java: [
15-
17 # Minimum supported by Minecraft
15+
17, # Current Java LTS & minimum supported by Minecraft
1616
]
1717
# and run on both Linux and Windows
18-
os: [ubuntu-20.04, windows-latest]
18+
os: [ubuntu-22.04, windows-2022]
1919
runs-on: ${{ matrix.os }}
2020
steps:
2121
- name: checkout repository
22-
uses: actions/checkout@v2
22+
uses: actions/checkout@v3
2323
- name: validate gradle wrapper
2424
uses: gradle/wrapper-validation-action@v1
2525
- name: setup jdk ${{ matrix.java }}
26-
uses: actions/setup-java@v1
26+
uses: actions/setup-java@v3
2727
with:
2828
java-version: ${{ matrix.java }}
29+
distribution: 'microsoft'
2930
- name: make gradle wrapper executable
3031
if: ${{ runner.os != 'Windows' }}
3132
run: chmod +x ./gradlew
3233
- name: build
3334
run: ./gradlew build
3435
- name: capture build artifacts
35-
if: ${{ runner.os == 'Linux' && matrix.java == '16' }} # Only upload artifacts built from latest java on one OS
36-
uses: actions/upload-artifact@v2
36+
if: ${{ runner.os == 'Linux' && matrix.java == '17' }} # Only upload artifacts built from latest java on one OS
37+
uses: actions/upload-artifact@v3
3738
with:
3839
name: Artifacts
3940
path: build/libs/

0 commit comments

Comments
 (0)