action to build on commit (verifies build)

This commit is contained in:
mcrcortex
2025-04-20 19:38:02 +10:00
parent 1456756ea7
commit e7c123fcf8
2 changed files with 30 additions and 0 deletions

27
.github/workflows/build-commit.yml vendored Normal file
View File

@@ -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

View File

@@ -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