]> git.seodisparate.com - TurnBasedMinecraftMod/commitdiff
Update action to use less ram
authorStephen Seo <seo.disparate@gmail.com>
Fri, 5 Jan 2024 06:35:12 +0000 (15:35 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Fri, 5 Jan 2024 06:35:12 +0000 (15:35 +0900)
.forgejo/workflows/build-jar.yaml

index a5ee90e0a575384b81aa15a835239dcab36c3b53..62327a063b34266f206f8e484c8a846a59f7fea9 100644 (file)
@@ -10,8 +10,9 @@ jobs:
     steps:
       - run: git clone --depth=1 --no-single-branch https://git.seodisparate.com/stephenseo/TurnBasedMinecraftMod.git TBMM
       - run: cd TBMM && git checkout master
-      - run: cd TBMM && ./gradlew build
-      - run: cd TBMM/build/libs && java --version >> javaVersion.txt && javac --version >> javaVersion.txt && find . -type f -exec bash -c 'sha256sum {} >> sha256sums.txt' ';'
+      - 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: built-jars-and-metadata