forked from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7b2456b
commit 8f63da6
Showing
1 changed file
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,23 +10,26 @@ jobs: | |
build: | ||
strategy: | ||
matrix: | ||
java: [ "17" ] # Latest version | ||
|
||
java: [ | ||
"17", # Old LTS | ||
"21" # Current LTS | ||
] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4.1.1 | ||
- uses: gradle/wrapper-validation-action@v1.1.0 | ||
- uses: actions/checkout@v4 | ||
- uses: gradle/wrapper-validation-action@v3 | ||
- name: Setup Java JDK | ||
uses: actions/setup-java@v4.0.0 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: "temurin" | ||
java-version: ${{ matrix.java }} | ||
- name: Grant execute permission | ||
run: chmod +x ./gradlew | ||
- name: Build with Gradle | ||
run: ./gradlew build | ||
- name: Upload a Build Artifact | ||
uses: actions/[email protected] | ||
- if: matrix.java == '17' | ||
name: Upload a Build Artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: modid | ||
path: build/libs/*.jar |