Fix workflow and make it on Alpine
All checks were successful
/ build (push) Successful in 44s

This commit is contained in:
Minecon724 2025-01-20 12:12:42 +01:00
parent 2890f00acd
commit bcd6827c29
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8
3 changed files with 12 additions and 16 deletions

View file

@ -2,10 +2,10 @@ on: [push]
jobs: jobs:
build: build:
runs-on: docker runs-on: docker
container: debian:sid container: eclipse-temurin:21-alpine
steps: steps:
- name: Install JDK and other deps - name: Install build dependencies
run: apt update && apt install --no-install-recommends -y openjdk-21-jdk-headless maven git nodejs curl zstd run: apk add nodejs curl tar zstd
- name: Checkout - name: Checkout
uses: https://github.com/actions/checkout@v4 uses: https://github.com/actions/checkout@v4
@ -14,19 +14,18 @@ jobs:
run: ./tools/download_nms.sh ~ run: ./tools/download_nms.sh ~
- name: Build for 1.21.4
- name: Build for 1.21.1 run: ./mvnw package -Dproject.minecraft.version=1.21.4 -Dproject.craftbukkit.version=v1_21_R3
run: mvn package -Dproject.minecraft.version=1.21.1 -Dproject.nms.version=v1_21_R1
- name: Build for 1.21.3 - 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 - name: Build for 1.21.1
run: mvn package -Dproject.minecraft.version=1.21.4 -Dproject.nms.version=v1_21_R3 run: ./mvnw package -Dproject.minecraft.version=1.21.1 -Dproject.craftbukkit.version=v1_21_R1
- name: Upload artifacts - name: Upload artifacts
uses: https://github.com/actions/upload-artifact@v3 uses: https://github.com/actions/upload-artifact@v3
with: with:
path: target path: target/tweaks-*.jar

View file

@ -80,10 +80,8 @@
<id>remap-obf</id> <id>remap-obf</id>
<configuration> <configuration>
<srgIn>org.spigotmc:minecraft-server:${project.spigot.version}:txt:maps-mojang</srgIn> <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> <remappedDependencies>org.spigotmc:spigot:${project.spigot.version}:jar:remapped-mojang</remappedDependencies>
<remappedArtifactAttached>true</remappedArtifactAttached> <reverse>true</reverse>
<remappedClassifierName>remapped-obf-temp-dont-use</remappedClassifierName>
</configuration> </configuration>
</execution> </execution>
<execution> <execution>
@ -93,7 +91,6 @@
</goals> </goals>
<id>remap-spigot</id> <id>remap-spigot</id>
<configuration> <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> <srgIn>org.spigotmc:minecraft-server:${project.spigot.version}:csrg:maps-spigot</srgIn>
<remappedDependencies>org.spigotmc:spigot:${project.spigot.version}:jar:remapped-obf</remappedDependencies> <remappedDependencies>org.spigotmc:spigot:${project.spigot.version}:jar:remapped-obf</remappedDependencies>
</configuration> </configuration>

View file

@ -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 # Tweaks724 is licensed under the GNU General Public License. See the LICENSE.md file
# in the project root for the full license text. # in the project root for the full license text.
# #