tweaks724/.forgejo/workflows/build.yml

27 lines
978 B
YAML
Raw Normal View History

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:
- name: Prepare for installation
2024-12-28 15:16:40 +01:00
run: echo ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} && apt update
2024-11-29 17:32:58 +01:00
- name: Install JDK and other deps
2024-11-30 19:13:48 +01:00
run: 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
run: git clone https://git.m724.eu/Minecon724/tweaks724.git .
2024-11-30 19:13:48 +01:00
#- 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
2024-12-28 15:16:40 +01:00
run: pwd && ls && ./tools/download_nms.sh ~
2024-11-29 17:23:26 +01:00
2024-12-28 13:51:41 +01:00
- name: Build for 1.21.1
2024-11-16 12:37:12 +01:00
run: mvn clean package
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-11-30 19:13:48 +01:00
path: target