Skip to content

Commit

Permalink
Upgrade builds to use JDK 21 which is the minimum version in Minecraf…
Browse files Browse the repository at this point in the history
…t 1.21
  • Loading branch information
DrHenchman committed Jun 1, 2024
1 parent f9f934c commit 54d1df5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# Sets up JDK 17 as using standard setup, the minimum Java version since Minecraft 1.18
- name: Set up JDK 17
# Sets up JDK 21 as using standard setup, the minimum Java version since Minecraft 1.21
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
distribution: microsoft
java-version: 17
java-version: 21
# Run against supported Minecraft versions
- name: Build and test (Minecraft version = latest release, variant = vanilla)
run: bin/ci.sh --clean
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# Sets up JDK 17 as using standard setup, the minimum Java version since Minecraft 1.18
- name: Set up JDK 17
# Sets up JDK 21 as using standard setup, the minimum Java version since Minecraft 1.21
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
distribution: microsoft
java-version: 17
java-version: 21
- name: Build Artifact
run: bin/ci.sh --clean
- name: Create Release
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# Sets up JDK 17 as using standard setup, the minimum Java version since Minecraft 1.18
- name: Set up JDK 17
# Sets up JDK 21 as using standard setup, the minimum Java version since Minecraft 1.21
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
distribution: microsoft
java-version: 17
java-version: 21
# Run against supported Minecraft versions
- name: Build and test (Minecraft version = latest snapshot, variant = vanilla)
run: bin/ci.sh --clean --version snapshot

0 comments on commit 54d1df5

Please sign in to comment.