generated from JamCoreModding/template-mod
-
Notifications
You must be signed in to change notification settings - Fork 2
60 lines (50 loc) · 1.5 KB
/
build.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
57
58
59
60
name: build
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
persist-credentials: false
fetch-depth: 0
- name: Enable Caching
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/loom-cache
~/.gradle/wrapper
key: gradle-${{ hashFiles('**/gradle-wrapper.properties') }}-${{ hashFiles('./gradle.properties') }}
restore-keys: gradle
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Setup JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Build
run: ./gradlew clean forge:build neoforge:build fabric:build quilt:build
- name: Capture Fabric Build Artifacts
uses: actions/upload-artifact@v2
with:
name: Fabric Artifacts
path: fabric/build/libs/
- name: Capture Quilt Build Artifacts
uses: actions/upload-artifact@v2
with:
name: Quilt Artifacts
path: quilt/build/libs/
- name: Capture Forge Build Artifacts
uses: actions/upload-artifact@v2
with:
name: Forge Artifacts
path: forge/build/libs/
- name: Capture NeoForge Build Artifacts
uses: actions/upload-artifact@v2
with:
name: NeoForge Artifacts
path: neoforge/build/libs/