-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
1 changed file
with
20 additions
and
42 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 |
---|---|---|
|
@@ -7,69 +7,47 @@ on: | |
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
version: | ||
- "1.16.5" | ||
- "1.17" | ||
- "1.17.1" | ||
- "1.18" | ||
- "1.18.1" | ||
- "1.18.2" | ||
- "1.19" | ||
- "1.19.1" | ||
- "1.19.2" | ||
- "1.19.3" | ||
- "1.19.4" | ||
- "1.20" | ||
- "1.20.1" | ||
- "1.20.2" | ||
- "1.20.3" | ||
- "1.20.4" | ||
- "1.21" | ||
- "1.21.1" | ||
- "1.21.2" | ||
- "1.21.3" | ||
- "1.21.4" | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
uses: actions/checkout@v2 | ||
- name: Install Gradle | ||
uses: sdkman/sdkman-action@main | ||
with: | ||
candidate: gradle | ||
version: 8.9 | ||
|
||
- name: Generate Gradle wrapper | ||
run: gradle wrapper | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Set up appropriate JDK | ||
- name: Set up multiple JDKs | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: | | ||
16 | ||
17 | ||
21 | ||
distribution: 'adopt' | ||
java-version: ${{ | ||
startsWith(matrix.version, '1.17') || startsWith(matrix.version, '1.18') && '16' || | ||
startsWith(matrix.version, '1.19') && '17' || | ||
startsWith(matrix.version, '1.20') && '17' || | ||
startsWith(matrix.version, '1.21') && '21' || | ||
'8' | ||
}} | ||
|
||
- name: Compile Minecraft Spigot (via BuildTools) | ||
- name: Compile Minecraft Spigot 1.16.5 (via BuildTools) | ||
uses: SpraxDev/[email protected] | ||
with: | ||
versions: "${{ matrix.version }}" | ||
versions: "1.16.5" | ||
|
||
- name: Upload Mojang Mappings | ||
- name: Compile Minecraft Spigot 1.17.1 (via BuildTools) | ||
run: | | ||
export JAVA_HOME=$JAVA_HOME_17_X64 | ||
java -version | ||
gh workflow run SpraxDev/[email protected] --with versions="1.17.1" | ||
- name: Build with Gradle | ||
run: ./gradlew build | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Mojang-Mappings-${{ matrix.version }} | ||
path: work/BuildTools/mappings/ | ||
name: Lusk.jar | ||
path: build/libs/*.jar | ||
|
||
test_build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|