From e7c123fcf8bc5d87d156b7f2fd03297a2156394a Mon Sep 17 00:00:00 2001 From: mcrcortex <18544518+MCRcortex@users.noreply.github.com> Date: Sun, 20 Apr 2025 19:38:02 +1000 Subject: [PATCH] action to build on commit (verifies build) --- .github/workflows/build-commit.yml | 27 +++++++++++++++++++++++++++ gradle.properties | 3 +++ 2 files changed, 30 insertions(+) create mode 100644 .github/workflows/build-commit.yml diff --git a/.github/workflows/build-commit.yml b/.github/workflows/build-commit.yml new file mode 100644 index 00000000..3af8bb0d --- /dev/null +++ b/.github/workflows/build-commit.yml @@ -0,0 +1,27 @@ +name: build-commit + +on: [ push ] +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout sources + uses: actions/checkout@v4 + + - name: Verify wrapper + uses: gradle/actions/wrapper-validation@v3 + + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 21 + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + with: + cache-read-only: false + + - name: Gradle build + run: ./gradlew build \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 6af835c4..94ed18c7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,9 @@ # Done to increase the memory available to gradle. org.gradle.jvmargs=-Xmx1G +org.gradle.caching=true +org.gradle.parallel=true + # Fabric Properties # check these on https://modmuss50.me/fabric.html minecraft_version=1.21.5