2024-11-16 12:37:12 +01:00
|
|
|
on: [push]
|
|
|
|
jobs:
|
2024-12-28 13:51:41 +01:00
|
|
|
build:
|
2024-11-16 12:37:12 +01:00
|
|
|
runs-on: docker
|
|
|
|
container: debian:sid
|
|
|
|
steps:
|
2024-11-29 17:32:58 +01:00
|
|
|
- name: Install JDK and other deps
|
2024-12-28 17:06:46 +01:00
|
|
|
run: apt update && apt install --no-install-recommends -y openjdk-21-jdk-headless maven git nodejs curl zstd
|
2024-11-29 17:23:26 +01:00
|
|
|
|
2024-12-28 13:51:41 +01:00
|
|
|
- name: Clone repository
|
2024-12-28 15:17:20 +01:00
|
|
|
run: git clone -b ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} https://git.m724.eu/Minecon724/tweaks724.git .
|
2024-12-28 13:51:41 +01:00
|
|
|
|
2024-11-30 19:13:48 +01:00
|
|
|
- name: Download NMS
|
2024-12-28 15:17:20 +01:00
|
|
|
run: ./tools/download_nms.sh ~
|
2024-11-29 17:23:26 +01:00
|
|
|
|
2024-12-28 17:06:46 +01:00
|
|
|
|
|
|
|
|
2024-12-28 13:51:41 +01:00
|
|
|
- name: Build for 1.21.1
|
2024-12-28 17:06:46 +01:00
|
|
|
run: mkdir artifact && mvn clean package && mv target/*.jar artifact/
|
|
|
|
|
|
|
|
- name: Build for 1.21.3
|
2024-12-28 17:32:16 +01:00
|
|
|
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.spigot.version=1.21.3-R0.1-SNAPSHOT && mv target/*.jar artifact/
|
2024-12-28 17:06:46 +01:00
|
|
|
|
|
|
|
- name: Build for 1.21.4
|
2024-12-28 17:32:16 +01:00
|
|
|
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.spigot.version=1.21.4-R0.1-SNAPSHOT && mv target/*.jar artifact/
|
2024-12-28 17:06:46 +01:00
|
|
|
|
|
|
|
|
2024-12-28 13:51:41 +01:00
|
|
|
|
2024-11-16 12:37:12 +01:00
|
|
|
- name: Upload artifacts
|
|
|
|
uses: https://github.com/actions/upload-artifact@v3
|
|
|
|
with:
|
2024-12-28 17:06:46 +01:00
|
|
|
path: artifact
|