Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
zly2006 committed Nov 8, 2024
1 parent bf93515 commit 4ca4b00
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ jobs:
build:
strategy:
matrix:
# Use these Java versions
java: [
21, # Current Java LTS & minimum supported by Minecraft
]
# and run on both Linux and Windows
os: [ ubuntu-20.04, windows-2022 ]
runs-on: ${{ matrix.os }}
Expand All @@ -17,11 +13,16 @@ jobs:
uses: actions/checkout@v4
- name: validate gradle wrapper
uses: gradle/actions/wrapper-validation@v3
- name: setup jdk ${{ matrix.java }}
- name: setup jdk 17
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.java }}
java-version: 17
- name: setup jdk 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: make gradle wrapper executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew
Expand Down

0 comments on commit 4ca4b00

Please sign in to comment.