modernize buildscript

This commit is contained in:
FalsePattern committed 2024-06-15 20:14:16 +02:00
1 parent 9e5448a4f4
commit 2f2b1ed1eb
17 files changed
+383 -1710

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
name: Build PR
on:
pull_request:
branches: [ master, main ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'adopt'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Setup the workspace
run: ./gradlew setupCIWorkspace
- name: Build the mod
run: ./gradlew build