Skip to content

Commit

Permalink
Adding buildtools mappings - 5
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeGBLP committed Jan 31, 2025
1 parent d34e4fa commit 4c18a4a
Showing 1 changed file with 20 additions and 42 deletions.
62 changes: 20 additions & 42 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4c18a4a

Please sign in to comment.