optimize workflow

This commit is contained in:
Minecon724 2024-11-30 19:13:48 +01:00
parent bc9ee000f4
commit 47e347c4a2
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8

View file

@ -7,10 +7,13 @@ jobs:
- name: Prepare for installation - name: Prepare for installation
run: apt update 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 run: apt install --no-install-recommends -y openjdk-21-jdk-headless maven git nodejs curl zstd
- name: BuildTools for NMS #- 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 # 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: 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 - name: Clone repository
run: git clone https://git.m724.eu/Minecon724/tweaks724.git . run: git clone https://git.m724.eu/Minecon724/tweaks724.git .
@ -19,4 +22,4 @@ jobs:
- 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/tweaks-*.jar path: target