Skip to content

Commit 33acf0e

Browse files
committed
change java version in build.yml
1 parent b1f301b commit 33acf0e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: .github/workflows/build.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010
build:
1111
strategy:
1212
matrix:
13-
# Use these Java versions
13+
# Use this Java versions
1414
java: [
15-
17, # Current Java LTS & minimum supported by Minecraft
15+
21, # Current Java LTS & minimum supported by Minecraft
1616
]
17-
# and run on both Linux and Windows
18-
os: [ubuntu-22.04, windows-2022]
17+
# and run Linux
18+
os: [ubuntu-22.04]
1919
runs-on: ${{ matrix.os }}
2020
steps:
2121
- name: checkout repository
@@ -33,7 +33,7 @@ jobs:
3333
- name: build
3434
run: ./gradlew build
3535
- name: capture build artifacts
36-
if: ${{ runner.os == 'Linux' && matrix.java == '17' }} # Only upload artifacts built from latest java on one OS
36+
if: ${{ runner.os == 'Linux' && matrix.java == '21' }} # Only upload artifacts built from latest java on one OS
3737
uses: actions/upload-artifact@v3
3838
with:
3939
name: Artifacts

0 commit comments

Comments
 (0)