Try that
Some checks failed
/ build (push) Failing after 43s

This commit is contained in:
Minecon724 2024-12-28 17:06:46 +01:00
parent 10da8cfc54
commit 864a9133d2
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8
2 changed files with 14 additions and 8 deletions

View file

@ -4,24 +4,29 @@ jobs:
runs-on: docker runs-on: docker
container: debian:sid container: debian:sid
steps: steps:
- name: Prepare for installation
run: apt update
- name: Install JDK and other deps - name: Install JDK and other deps
run: apt install --no-install-recommends -y openjdk-21-jdk-headless maven git nodejs curl zstd run: apt update && apt install --no-install-recommends -y openjdk-21-jdk-headless maven git nodejs curl zstd
- name: Clone repository - name: Clone repository
run: git clone -b ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} https://git.m724.eu/Minecon724/tweaks724.git . 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 - name: Download NMS
run: ./tools/download_nms.sh ~ run: ./tools/download_nms.sh ~
- name: Build for 1.21.1 - name: Build for 1.21.1
run: mvn clean package run: mkdir artifact && mvn clean package && mv target/*.jar artifact/
- name: Build for 1.21.3
run: mvn clean package -Dproject.spigot.version=1.21.3-R0.1-SNAPSHOT && mv target/*.jar artifact/
- name: Build for 1.21.4
run: mvn clean package -Dproject.spigot.version=1.21.4-R0.1-SNAPSHOT && mv target/*.jar artifact/
- 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: artifact

View file

@ -20,6 +20,7 @@
</properties> </properties>
<build> <build>
<finalName>${artifactId}-${version}+${project.spigot.version}</finalName>
<resources> <resources>
<resource> <resource>
<directory>src/main/resources</directory> <directory>src/main/resources</directory>