-
Notifications
You must be signed in to change notification settings - Fork 54
45 lines (37 loc) · 1.03 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
name: Build
on: [ pull_request, push ]
jobs:
build:
strategy:
matrix:
java: [ 21 ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: setup JDK${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/loom-cache
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle-wrapper.properties') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build Fabric
run: ./gradlew :fabric:build
- name: Build NeoForge
run: ./gradlew :neoforge:build
# - name: Build Forge
# run: ./gradlew :forge:build
- name: Upload Artifacts
uses: actions/upload-artifact@v4.4.0
with:
name: Artifacts
path: |
fabric/build/libs/
neoforge/build/libs/
# forge/build/libs/