This commit is contained in:
parent
2890f00acd
commit
bcd6827c29
3 changed files with 12 additions and 16 deletions
|
@ -2,10 +2,10 @@ on: [push]
|
|||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
container: debian:sid
|
||||
container: eclipse-temurin:21-alpine
|
||||
steps:
|
||||
- name: Install JDK and other deps
|
||||
run: apt update && apt install --no-install-recommends -y openjdk-21-jdk-headless maven git nodejs curl zstd
|
||||
- name: Install build dependencies
|
||||
run: apk add nodejs curl tar zstd
|
||||
|
||||
- name: Checkout
|
||||
uses: https://github.com/actions/checkout@v4
|
||||
|
@ -14,19 +14,18 @@ jobs:
|
|||
run: ./tools/download_nms.sh ~
|
||||
|
||||
|
||||
|
||||
- name: Build for 1.21.1
|
||||
run: mvn package -Dproject.minecraft.version=1.21.1 -Dproject.nms.version=v1_21_R1
|
||||
- name: Build for 1.21.4
|
||||
run: ./mvnw package -Dproject.minecraft.version=1.21.4 -Dproject.craftbukkit.version=v1_21_R3
|
||||
|
||||
- name: Build for 1.21.3
|
||||
run: mvn package -Dproject.minecraft.version=1.21.3 -Dproject.nms.version=v1_21_R2
|
||||
run: ./mvnw package -Dproject.minecraft.version=1.21.3 -Dproject.craftbukkit.version=v1_21_R2
|
||||
|
||||
- name: Build for 1.21.4
|
||||
run: mvn package -Dproject.minecraft.version=1.21.4 -Dproject.nms.version=v1_21_R3
|
||||
- name: Build for 1.21.1
|
||||
run: ./mvnw package -Dproject.minecraft.version=1.21.1 -Dproject.craftbukkit.version=v1_21_R1
|
||||
|
||||
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: https://github.com/actions/upload-artifact@v3
|
||||
with:
|
||||
path: target
|
||||
path: target/tweaks-*.jar
|
5
pom.xml
5
pom.xml
|
@ -80,10 +80,8 @@
|
|||
<id>remap-obf</id>
|
||||
<configuration>
|
||||
<srgIn>org.spigotmc:minecraft-server:${project.spigot.version}:txt:maps-mojang</srgIn>
|
||||
<reverse>true</reverse>
|
||||
<remappedDependencies>org.spigotmc:spigot:${project.spigot.version}:jar:remapped-mojang</remappedDependencies>
|
||||
<remappedArtifactAttached>true</remappedArtifactAttached>
|
||||
<remappedClassifierName>remapped-obf-temp-dont-use</remappedClassifierName>
|
||||
<reverse>true</reverse>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
|
@ -93,7 +91,6 @@
|
|||
</goals>
|
||||
<id>remap-spigot</id>
|
||||
<configuration>
|
||||
<inputFile>${project.build.directory}/${project.artifactId}-${project.version}-remapped-obf-temp-dont-use.jar</inputFile>
|
||||
<srgIn>org.spigotmc:minecraft-server:${project.spigot.version}:csrg:maps-spigot</srgIn>
|
||||
<remappedDependencies>org.spigotmc:spigot:${project.spigot.version}:jar:remapped-obf</remappedDependencies>
|
||||
</configuration>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Copyright (C) 2024 Minecon724
|
||||
# Copyright (C) 2025 Minecon724
|
||||
# Tweaks724 is licensed under the GNU General Public License. See the LICENSE.md file
|
||||
# in the project root for the full license text.
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue