From 8d15bbb5937206b8ee9c3e5fd37637ee32611650 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Fri, 5 Jan 2024 15:46:40 +0900 Subject: [PATCH] Add forgejo build action for NeoForge branch --- .forgejo/workflows/build-jar.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .forgejo/workflows/build-jar.yaml diff --git a/.forgejo/workflows/build-jar.yaml b/.forgejo/workflows/build-jar.yaml new file mode 100644 index 0000000..3d854e0 --- /dev/null +++ b/.forgejo/workflows/build-jar.yaml @@ -0,0 +1,19 @@ +name: Build TurnBasedMC and store Artifact +on: + push: + branches: + - 'neoforge' + +jobs: + build-and-store-artifact: + runs-on: archLinux + steps: + - run: git clone --depth=1 --no-single-branch https://git.seodisparate.com/stephenseo/TurnBasedMinecraftMod.git TBMM + - run: cd TBMM && git checkout neoforge + - run: cd TBMM && sed -i '/org.gradle.jvmargs/s/Xmx[0-9]\+m/Xmx700m/' gradle.properties + - run: cd TBMM && ./gradlew --console=plain build + - run: cd TBMM/build/libs && find . -type f -exec bash -c 'sha256sum {} >> sha256sums.txt' ';' && java --version >> javaVersion.txt && javac --version >> javaVersion.txt + - uses: actions/upload-artifact@v3 + with: + name: TBMM_NeoForge_jars_sha256sums + path: TBMM/build/libs/