Skip to content

Commit

Permalink
Fix Github Build Workflow
Browse files Browse the repository at this point in the history
Minecraft 1.21.2 requires Java 21 but Gradle is using 17
  • Loading branch information
cputnam-a11y authored and emonadeo committed Nov 7, 2024
1 parent e8ff28c commit 8bcc774
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
matrix:
# Use these Java versions
java: [
17, # Current Java LTS & minimum supported by Minecraft
21, # Current Java LTS & minimum supported by Minecraft
]
# and run on both Linux and Windows
os: [ubuntu-22.04, windows-2022]
Expand All @@ -33,8 +33,8 @@ jobs:
- name: build
run: ./gradlew build
- name: capture build artifacts
if: ${{ runner.os == 'Linux' && matrix.java == '17' }} # Only upload artifacts built from latest java on one OS
if: ${{ runner.os == 'Linux' && matrix.java == '21' }} # Only upload artifacts built from latest java on one OS
uses: actions/upload-artifact@v3
with:
name: Artifacts
path: build/libs/
path: build/libs/

0 comments on commit 8bcc774

Please sign in to comment.