-
-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (31 loc) · 978 Bytes
/
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
name: build-artifacts
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
platform: [forge, neoforge, fabric]
steps:
- uses: actions/checkout@v4
- name: Setup JDK 17
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Build artifacts
run: |
if [ ${{ matrix.platform }} == "neoforge" ]; then
./gradlew clean neoforge:build
elif [ ${{ matrix.platform }} == "forge" ]; then
./gradlew clean forge:build
elif [ ${{ matrix.platform }} == "fabric" ]; then
./gradlew clean fabric:build
fi
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts-${{ matrix.platform }}
path: ${{ matrix.platform }}/build/libs