-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (37 loc) · 1.14 KB
/
gradle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Gradle build
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache Gradle stuff
uses: actions/cache@v4
with:
key: gradle-${{ hashFiles('*.gradle.kts', 'gradle.properties', '*/*.gradle.kts', 'gradle/**') }}
restore-keys: gradle-
path: |
~/.gradle/caches
~/.gradle/wrapper
.gradle/loom-cache
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: zulu
- name: Build with Gradle
run: ./gradlew build --stacktrace
- name: Upload Fabric artifacts
uses: actions/upload-artifact@v4
with:
name: fabric-jars
path: fabric/build/libs
- name: Upload NeoForge artifacts
uses: actions/upload-artifact@v4
with:
name: neoforge-jars
path: neoforge/build/libs
- name: Run datagen
run: ./gradlew :fabric:runDatagenClient
- name: Verify datagen up-to-date
run: git diff --color=always --exit-code