on: [push] jobs: build: runs-on: docker container: debian:sid steps: - name: Install JDK and other deps run: apt update && apt install --no-install-recommends -y openjdk-21-jdk-headless maven git nodejs curl zstd - name: Checkout uses: https://github.com/actions/checkout@v4 - name: Download NMS run: ./tools/download_nms.sh ~ - name: Build for 1.21.4 run: mvn package -Dproject.minecraft.version=1.21.4 -Dproject.craftbukkit.version=v1_21_R3 - name: Build for 1.21.3 run: mvn package -Dproject.minecraft.version=1.21.3 -Dproject.craftbukkit.version=v1_21_R2 - name: Build for 1.21.1 run: mvn package -Dproject.minecraft.version=1.21.1 -Dproject.craftbukkit.version=v1_21_R1 - name: Upload artifacts uses: https://github.com/actions/upload-artifact@v3 with: path: target