From 5ee3479598c537ea25463525f132b21393f6412d Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Sun, 15 Dec 2024 14:02:38 -0700 Subject: [PATCH] build paperweight in actions temporarily --- .github/workflows/build.yml | 2 ++ .gitmodules | 3 +++ build_paperweight.sh | 5 +++++ paperweight | 1 + 4 files changed, 11 insertions(+) create mode 100644 .gitmodules create mode 100755 build_paperweight.sh create mode 160000 paperweight diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4434243..15767bd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,6 +22,8 @@ jobs: uses: gradle/actions/setup-gradle@v4 - name: Configure Git User Details run: git config --global user.email "actions@github.com" && git config --global user.name "Github Actions" + - name: build paperweight + run: ./build_paperweight.sh - name: Apply Patches run: ./gradlew applyAllPatches --stacktrace - name: Build diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..5fd5230 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "paperweight"] + path = paperweight + url = https://github.com/PaperMC/paperweight.git diff --git a/build_paperweight.sh b/build_paperweight.sh new file mode 100755 index 0000000..7a77305 --- /dev/null +++ b/build_paperweight.sh @@ -0,0 +1,5 @@ +#!/bin/bash +set -eou pipefail +git submodule update --init --recursive +cd paperweight +./gradlew pTML diff --git a/paperweight b/paperweight new file mode 160000 index 0000000..2dfd1f1 --- /dev/null +++ b/paperweight @@ -0,0 +1 @@ +Subproject commit 2dfd1f14007826bf04a19b972294f18ddb692a34