-
Notifications
You must be signed in to change notification settings - Fork 44
159 lines (143 loc) Β· 5.24 KB
/
trigger_on_pull_request.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
name: PR Checks
on: [ pull_request ]
concurrency:
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-trigger_on_pull_request
cancel-in-progress: true
jobs:
setup-build-variables:
# Fake job to define outputs which can be used in the other jobs
name: π οΈ Setup build variables
runs-on: ubuntu-latest
steps:
- run: |
echo "Setup done"
outputs: # defined here explicitly, so it only needs to be defined here. All other workflows can just reference it
godot-kotlin-jvm-version: "0.9.1-4.2.2"
godot-version: "4.2.2-stable"
jvm-version: "17"
build-jvm:
name: β Build Jvm
uses: ./.github/workflows/build_jvm.yml
needs:
- setup-build-variables
with:
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
jvm-version: ${{ needs.setup-build-variables.outputs['jvm-version'] }}
build-android:
name: π€ Build and Assemble Android
uses: ./.github/workflows/build_android.yml
needs:
- setup-build-variables
with:
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
jvm-version: ${{ needs.setup-build-variables.outputs['jvm-version'] }}
build-ios:
name: π Build iOS
uses: ./.github/workflows/build_ios.yml
needs:
- setup-build-variables
with:
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
build-linux:
name: π§ Build Linux
uses: ./.github/workflows/build_linux.yml
needs:
- setup-build-variables
with:
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
build-macos:
name: π Build macOS
uses: ./.github/workflows/build_macos.yml
needs:
- setup-build-variables
with:
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
build-windows:
name: πͺ Build Windows
uses: ./.github/workflows/build_windows.yml
needs:
- setup-build-variables
with:
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
assemble-macos:
name: π Assemble macos
uses: ./.github/workflows/assemble_macos.yml
needs:
- setup-build-variables
- build-jvm
- build-macos
with:
godot-kotlin-jvm-version: ${{ needs.setup-build-variables.outputs['godot-kotlin-jvm-version'] }}
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
assemble-ios:
name: π Assemble ios
uses: ./.github/workflows/assemble_ios.yml
needs:
- setup-build-variables
- build-ios
with:
godot-kotlin-jvm-version: ${{ needs.setup-build-variables.outputs['godot-kotlin-jvm-version'] }}
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
assemble-linux:
name: π§ Assemble linux
uses: ./.github/workflows/assemble_linux.yml
needs:
- setup-build-variables
- build-jvm
- build-linux
with:
godot-kotlin-jvm-version: ${{ needs.setup-build-variables.outputs['godot-kotlin-jvm-version'] }}
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
assemble-windows:
name: πͺ Assemble windows
uses: ./.github/workflows/assemble_windows.yml
needs:
- setup-build-variables
- build-jvm
- build-windows
with:
godot-kotlin-jvm-version: ${{ needs.setup-build-variables.outputs['godot-kotlin-jvm-version'] }}
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
assemble-export-templates:
name: π€+π+π§+π+πͺ Assemble export templates
uses: ./.github/workflows/assemble_export_templates.yml
needs:
- setup-build-variables
- build-android # uploads finished export template directly
- assemble-ios # export templates need to be packed into xcode project
- build-linux # uploads finished export template directly
- assemble-macos # export templates need to be packed into app
- build-windows # uploads finished export template directly
with:
godot-kotlin-jvm-version: ${{ needs.setup-build-variables.outputs['godot-kotlin-jvm-version'] }}
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
test-linux:
name: π§ Test Linux
uses: ./.github/workflows/test_linux.yml
needs:
- setup-build-variables
- build-jvm
- build-linux
with:
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
jvm-version: ${{ needs.setup-build-variables.outputs['jvm-version'] }}
test-macos:
name: π Test Macos
uses: ./.github/workflows/test_macos.yml
needs:
- setup-build-variables
- build-jvm
- assemble-macos # we need the universal binary
with:
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
jvm-version: ${{ needs.setup-build-variables.outputs['jvm-version'] }}
test-windows:
name: πͺ Test Windows
uses: ./.github/workflows/test_windows.yml
needs:
- setup-build-variables
- build-jvm
- build-windows
with:
godot-version: ${{ needs.setup-build-variables.outputs['godot-version'] }}
jvm-version: ${{ needs.setup-build-variables.outputs['jvm-version'] }}