-
-
Notifications
You must be signed in to change notification settings - Fork 507
56 lines (52 loc) · 1.48 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Java CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'
- name: Cache
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
./.gradle/loom-cache/remapped-mods
key: ${{ runner.os }}-gradle-${{ hashFiles('**/build.gradle', '**/gradle-wrapper.properties') }}
- name: Check lang files
run: ./scripts/check_lang.sh
- name: Build GoG
run: make -C garden_of_glass jar
- name: Build with Gradle
run: ./gradlew pmdMain spotlessJavaCheck build
- name: PMD report
uses: jwgmeligmeyling/pmd-github-action@v1
if: failure()
with:
path: '**/reports/pmd/main.xml'
- name: Check generated files up to date
run: ./scripts/check_datagen.sh
- name: Run GameTests (Fabric)
run: ./gradlew :Fabric:runGameTest
- name: Archive Fabric Binaries
uses: actions/upload-artifact@v2
with:
name: Fabric
path: Fabric/build/libs/*.jar
- name: Archive Forge Binaries
uses: actions/upload-artifact@v2
with:
name: Forge
path: Forge/build/libs/*.jar
- name: Archive GoG Binary
uses: actions/upload-artifact@v2
with:
name: GoG
path: garden_of_glass/*.jar
- name: Cleanup
run: ./gradlew --stop