-
Notifications
You must be signed in to change notification settings - Fork 0
103 lines (97 loc) · 2.67 KB
/
test.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
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
name: "Test build"
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test-build:
name: "Test build"
runs-on: "ubuntu-latest"
permissions:
contents: read
strategy:
matrix:
dir:
- common
- 1.16-1.16.1-fabric
- 1.16.2-1.16.5-fabric
- 1.17-1.17.1-fabric
- 1.18-1.18.2-fabric
- 1.19-1.19.1-fabric
- 1.19.2-fabric
- 1.19.3-1.19.4-fabric
- 1.20-1.20.1-fabric
- 1.20.2-24w13a-fabric
- 24w14a-1.21.1-fabric
- 24w33a-fabric
- 1.8.9-1.10-forge
- 1.10.2-1.11-forge
- 1.11.2-1.12.2-forge
- 1.18.2-forge
- 1.19.2-forge
- 1.19.4-forge
- 1.20.1-forge
include:
- dir: common
java-verion: 8
- dir: 1.16-1.16.1-fabric
java-verion: 17
- dir: 1.16.2-1.16.5-fabric
java-verion: 17
- dir: 1.17-1.17.1-fabric
java-verion: 17
- dir: 1.18-1.18.2-fabric
java-verion: 17
- dir: 1.19-1.19.1-fabric
java-verion: 17
- dir: 1.19.2-fabric
java-verion: 17
- dir: 1.19.3-1.19.4-fabric
java-verion: 17
- dir: 1.20-1.20.1-fabric
java-verion: 17
- dir: 1.20.2-24w13a-fabric
java-verion: 17
- dir: 24w14a-1.21.1-fabric
java-verion: 21
- dir: 24w33a-fabric
java-verion: 21
- dir: 1.8.9-1.10-forge
java-verion: 8
decompile: true
- dir: 1.10.2-1.11-forge
java-verion: 8
- dir: 1.11.2-1.12.2-forge
java-verion: 8
- dir: 1.18.2-forge
java-verion: 17
- dir: 1.19.2-forge
java-verion: 17
- dir: 1.19.4-forge
java-verion: 17
- dir: 1.20.1-forge
java-verion: 17
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java-verion }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-verion }}
distribution: temurin
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build with Gradle Wrapper
run: |
cd ${{ matrix.dir }}/
chmod +x gradlew
if [ -n "$DECOMPILE" ]; then
./gradlew setupDecompWorkspace
fi
./gradlew build
env:
GITHUB_USERNAME: ${{ secrets.GH_PKG_USERNAME }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DECOMPILE: ${{ matrix.decompile }}