@@ -167,6 +167,14 @@ jobs:
167
167
repository : godotengine/godot
168
168
ref : 4.2-stable
169
169
170
+ # TODO: remove once on godot 4.2.2 or newer!
171
+ - name : Cherry pick macos fix
172
+ run : |
173
+ git fetch -a
174
+ git config --global user.email "mario@super.com"
175
+ git config --global user.name "Super Mario"
176
+ git cherry-pick a2c1c01941a3dec3e2a361d9dc21bb0390efcbaf
177
+
170
178
- name : Clone Godot JVM module.
171
179
uses : actions/checkout@v2
172
180
with :
@@ -240,23 +248,7 @@ jobs:
240
248
241
249
build-android-export-template :
242
250
needs : [deploy-export-template]
243
- strategy :
244
- matrix :
245
- name : [ Android-debug, Android-release ]
246
- include :
247
- - name : Android-debug
248
- os : ubuntu-20.04
249
- java-version : 11
250
- target : template_debug
251
- base-path : platform/android/java/lib/libs/debug
252
- apk-name : android_debug.apk
253
- - name : Android-release
254
- os : ubuntu-20.04
255
- java-version : 11
256
- target : template_release
257
- base-path : platform/android/java/lib/libs/release
258
- apk-name : android_release.apk
259
- runs-on : ${{ matrix.os }}
251
+ runs-on : ubuntu-20.04
260
252
steps :
261
253
- name : Download release informations
262
254
uses : actions/download-artifact@v3
@@ -282,20 +274,71 @@ jobs:
282
274
path : modules/kotlin_jvm
283
275
submodules : recursive
284
276
285
- - name : Build android export template
286
- uses : ./modules/kotlin_jvm/.github/actions/create-android-export-template
277
+ - name : Setup Godot dependencies
278
+ uses : ./.github/actions/godot-deps
279
+
280
+ - name : Set up JDK 17
281
+ uses : actions/setup-java@v1
287
282
with :
288
- target : ${{ matrix.target }}
289
- base-path : ${{ matrix.base-path }}
283
+ java-version : 17
284
+
285
+ - name : Setup Android SDK
286
+ uses : android-actions/setup-android@v2
287
+
288
+ - name : Download android template_debug export armv7 binary
289
+ uses : actions/download-artifact@v3
290
+ with :
291
+ name : android-export-template_debug-binary-armv7
292
+ path : platform/android/java/lib/libs/debug/armeabi-v7a
290
293
291
- - name : Upload android export template ${{ matrix.target }}
294
+ - name : Download android template_release export armv7 binary
295
+ uses : actions/download-artifact@v3
296
+ with :
297
+ name : android-export-template_release-binary-armv7
298
+ path : platform/android/java/lib/libs/release/armeabi-v7a
299
+
300
+ - name : Download android template_debug export arm64v8 binary
301
+ uses : actions/download-artifact@v3
302
+ with :
303
+ name : android-export-template_debug-binary-arm64v8
304
+ path : platform/android/java/lib/libs/debug/arm64-v8a
305
+
306
+ - name : Download android template_release export arm64v8 binary
307
+ uses : actions/download-artifact@v3
308
+ with :
309
+ name : android-export-template_release-binary-arm64v8
310
+ path : platform/android/java/lib/libs/release/arm64-v8a
311
+
312
+ - name : Download android template_debug export x86_64 binary
313
+ uses : actions/download-artifact@v3
314
+ with :
315
+ name : android-export-template_debug-binary-x86_64
316
+ path : platform/android/java/lib/libs/debug/x86_64
317
+
318
+ - name : Download android template_release export x86_64 binary
319
+ uses : actions/download-artifact@v3
320
+ with :
321
+ name : android-export-template_release-binary-x86_64
322
+ path : platform/android/java/lib/libs/release/x86_64
323
+
324
+ - name : Build android export templates
325
+ shell : bash
326
+ run : |
327
+ cd platform/android/java/ && ./gradlew generateGodotTemplates
328
+
329
+ - name : Upload android export template debug
292
330
uses : actions/upload-artifact@v3
293
331
with :
294
- path : bin/${{ matrix.apk-name }}
295
- name : ${{ matrix.apk-name }}
332
+ path : bin/android_debug.apk
333
+ name : android_debug.apk
334
+
335
+ - name : Upload android export template release
336
+ uses : actions/upload-artifact@v3
337
+ with :
338
+ path : bin/android_release.apk
339
+ name : android_release.apk
296
340
297
341
- name : Upload android source
298
- if : matrix.target == 'template_release' # we only need to do this once doesn't matter for which target
299
342
uses : actions/upload-artifact@v3
300
343
with :
301
344
path : bin/android_source.zip
@@ -575,7 +618,7 @@ jobs:
575
618
576
619
- name : Create version.txt
577
620
run : |
578
- refVersion=4.1. 2-stable #for easier search and replace with other `ref` occurrences
621
+ refVersion=4.2-stable #for easier search and replace with other `ref` occurrences
579
622
templatesVersion=${refVersion//-/.} #replace `-` with `.` in templates version
580
623
echo "$templatesVersion" > templates/version.txt
581
624
shell : bash
0 commit comments