-
-
Notifications
You must be signed in to change notification settings - Fork 14
40 lines (33 loc) · 1.17 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
# Clones the repository which then begins with validating the Gradle Wrapper checksum,
# If the checksum completes, the script then sets up the JDK we need and begins compiling the software,
# Finally, If the compiled files have been pushed out to the "(something)/build/libs/" directory - It gets uploaded to GitHub.
name: Build PFM using Gradle
on: [pull_request, push]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Validate Gradle wrapper
uses: gradle/actions/setup-gradle@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
check-latest: true
- name: Build using Gradle
run: ./gradlew build
- name: Upload Fabric artifacts to GitHub
uses: actions/upload-artifact@v4
with:
name: Fabric-Artifacts
path: fabric/build/libs/
- name: Upload Forge artifacts to GitHub
uses: actions/upload-artifact@v4
with:
name: Forge-Artifacts
path: forge/build/libs/