-
-
Notifications
You must be signed in to change notification settings - Fork 11
68 lines (67 loc) · 2.55 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Build
on: [ pull_request, push, workflow_dispatch ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@main
- name: Validate gradle wrapper
uses: gradle/wrapper-validation-action@main
- name: Setup JDK 17
uses: actions/setup-java@main
with:
java-version: 17
distribution: 'zulu'
- name: Make gradle wrapper executable
run: chmod +x ./gradlew
- name: Scan Minecraft classes
run: ./gradlew test -x common:test --continue -Pgenerate=dryRun
continue-on-error: true
- name: Generate holders
run: ./gradlew test -x common:test --continue -Pgenerate=normal
continue-on-error: true
- name: Search for mapped methods
run: ./gradlew test -x common:test
- name: Analyze test results
run: ./gradlew common:test
- name: Build common
run: ./gradlew common:build -x test
- name: Build Fabric 1.16.5
run: ./gradlew fabric:1.16.5-mapping:build -x test
- name: Build Fabric 1.17.1
run: ./gradlew fabric:1.17.1-mapping:build -x test
- name: Build Fabric 1.18.2
run: ./gradlew fabric:1.18.2-mapping:build -x test
- name: Build Fabric 1.19.2
run: ./gradlew fabric:1.19.2-mapping:build -x test
- name: Build Fabric 1.19.4
run: ./gradlew fabric:1.19.4-mapping:build -x test
- name: Build Fabric 1.20.1
run: ./gradlew fabric:1.20.1-mapping:build -x test
- name: Build Fabric 1.20.4
run: ./gradlew fabric:1.20.4-mapping:build -x test
- name: Build Forge 1.16.5
run: ./gradlew forge:1.16.5-mapping:build -x test
- name: Build Forge 1.17.1
run: ./gradlew forge:1.17.1-mapping:build -x test
- name: Build Forge 1.18.2
run: ./gradlew forge:1.18.2-mapping:build -x test
- name: Build Forge 1.19.2
run: ./gradlew forge:1.19.2-mapping:build -x test
- name: Build Forge 1.19.4
run: ./gradlew forge:1.19.4-mapping:build -x test
- name: Build Forge 1.20.1
run: ./gradlew forge:1.20.1-mapping:build -x test
- name: Build Forge 1.20.4
run: ./gradlew forge:1.20.4-mapping:build -x test
- name: Capture build artifacts
uses: actions/upload-artifact@main
with:
name: Mappings
path: build/release/
- name: Capture consolidated Minecraft methods
uses: actions/upload-artifact@main
with:
name: Minecraft Methods
path: build/libraryMethods/