Compare commits

..

No commits in common. "c4df9764d443a6500f1a719dabd14eb1b4940cba" and "22171d7053c22e9b04f30c98159cc54908e076ae" have entirely different histories.

3 changed files with 14 additions and 42 deletions

View file

@ -1,32 +1,25 @@
on: [push]
jobs:
build:
deploy:
runs-on: docker
container: debian:sid
steps:
- name: Prepare for installation
run: apt update
- name: Install JDK and other deps
run: apt update && apt install --no-install-recommends -y openjdk-21-jdk-headless maven git nodejs curl zstd
run: apt install --no-install-recommends -y openjdk-21-jdk-headless maven git nodejs curl zstd
- name: Clone repository
run: git clone -b ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} https://git.m724.eu/Minecon724/tweaks724.git .
#- name: BuildTools for NMS
# run: mkdir /tmp/buildtools && cd /tmp/buildtools && curl -O https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar && java -jar BuildTools.jar --rev 1.21.1 --remapped && cd
- name: Download NMS
run: ./tools/download_nms.sh ~
- name: Build for 1.21.1
run: mkdir artifact && mvn clean package && mv target/tweaks-*+1.21.1.jar artifact/
- name: Build for 1.21.3
run: find src \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i "s/v1_21_R1/v1_21_R2/g" && mvn clean package -Dproject.minecraft.version=1.21.3 && mv target/tweaks-*+1.21.3.jar artifact/
- name: Build for 1.21.4
run: find src \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i "s/v1_21_R2/v1_21_R3/g" && mvn clean package -Dproject.minecraft.version=1.21.4 && mv target/tweaks-*+1.21.4.jar artifact/
run: curl -O https://git.m724.eu/Minecon724/temporary/raw/branch/master/XRIH.tar.zst && tar -xaf XRIH.tar.zst -C ~ && rm XRIH.tar.zst
- name: Clone repository
run: git clone https://git.m724.eu/Minecon724/tweaks724.git .
- name: Build
run: mvn clean package
- name: Upload artifacts
uses: https://github.com/actions/upload-artifact@v3
with:
path: artifact
path: target

View file

@ -10,18 +10,16 @@
<groupId>eu.m724</groupId>
<artifactId>tweaks</artifactId>
<version>0.1.10-SNAPSHOT</version>
<version>0.1.9-SNAPSHOT</version>
<properties>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.minecraft.version>1.21.1</project.minecraft.version>
<project.spigot.version>${project.minecraft.version}-R0.1-SNAPSHOT</project.spigot.version>
<project.spigot.version>1.21.1-R0.1-SNAPSHOT</project.spigot.version>
</properties>
<build>
<finalName>${project.artifactId}-${project.version}+${project.minecraft.version}</finalName>
<resources>
<resource>
<directory>src/main/resources</directory>

View file

@ -1,19 +0,0 @@
#!/bin/bash
#
# Copyright (C) 2024 Minecon724
# Tweaks724 is licensed under the GNU General Public License. See the LICENSE.md file
# in the project root for the full license text.
#
FILENAME=MS4yMS4xLTQK.tar.zst
curl -O https://36ab09b1.m724.eu/$FILENAME
if [ "$(sha512sum $FILENAME)" = "475b931b6dde126aafd3f959bd02e122aa3c671ad11e83cbe1a9c9ea771a424f203381aa31e4ab40052dae1bfbe96c61daa81add1afab46dd423a5f038d68a6b MS4yMS4xLTQK.tar.zst" ]; then
tar -xaf $FILENAME -C "$1"
rm $FILENAME
else
echo "Checksum invalid"
rm $FILENAME
exit 1
fi