-
Notifications
You must be signed in to change notification settings - Fork 1
112 lines (99 loc) · 3.27 KB
/
build.yml
File metadata and controls
112 lines (99 loc) · 3.27 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# Automatically build the project and run any configured tests for every push
# and submitted pull request. This can help catch issues that only occur on
# certain platforms or Java versions, and provides a first line of defence
# against bad commits.
name: build
on: [pull_request]
jobs:
build-fabric-1-21-1:
runs-on: ubuntu-24.04
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: validate gradle wrapper
uses: gradle/actions/wrapper-validation@v4
- name: setup jdk
uses: actions/setup-java@v4
with:
java-version: "25"
distribution: "microsoft"
- name: make gradle wrapper executable
working-directory: ./Fabric-1.21.1
run: chmod +x ./gradlew
- name: build Fabric 1.21.1
working-directory: ./Fabric-1.21.1
run: ./gradlew build
- name: upload artifacts Fabric 1.21.1
uses: actions/upload-artifact@v4
with:
name: Fabric-1.21.1-artifacts
path: Fabric-1.21.1/build/libs/
build-fabric-1-21-11:
runs-on: ubuntu-24.04
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: validate gradle wrapper
uses: gradle/actions/wrapper-validation@v4
- name: setup jdk
uses: actions/setup-java@v4
with:
java-version: "25"
distribution: "microsoft"
- name: make gradle wrapper executable
working-directory: ./Fabric-1.21.11
run: chmod +x ./gradlew
- name: build Fabric 1.21.11
working-directory: ./Fabric-1.21.11
run: ./gradlew build
- name: upload artifacts Fabric 1.21.11
uses: actions/upload-artifact@v4
with:
name: Fabric-1.21.11-artifacts
path: Fabric-1.21.11/build/libs/
build-fabric-1-20-1:
runs-on: ubuntu-24.04
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: validate gradle wrapper
uses: gradle/actions/wrapper-validation@v4
- name: setup jdk
uses: actions/setup-java@v4
with:
java-version: "25"
distribution: "microsoft"
- name: make gradle wrapper executable
working-directory: ./Fabric-1.20.1
run: chmod +x ./gradlew
- name: build Fabric 1.20.1
working-directory: ./Fabric-1.20.1
run: ./gradlew build
- name: upload artifacts Fabric 1.20.1
uses: actions/upload-artifact@v4
with:
name: Fabric-1.20.1-artifacts
path: Fabric-1.20.1/build/libs/
build-fabric-26-1:
runs-on: ubuntu-24.04
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: validate gradle wrapper
uses: gradle/actions/wrapper-validation@v4
- name: setup jdk
uses: actions/setup-java@v4
with:
java-version: "25"
distribution: "microsoft"
- name: make gradle wrapper executable
working-directory: ./Fabric-26.1
run: chmod +x ./gradlew
- name: build Fabric 26.1
working-directory: ./Fabric-26.1
run: ./gradlew build
- name: upload artifacts Fabric 26.1
uses: actions/upload-artifact@v4
with:
name: Fabric-26.1-artifact
path: Fabric-26.1/build/libs/