5
5
workflow_dispatch :
6
6
inputs :
7
7
packaged_sdk_run_id :
8
- description : ' run # of "Firebase Unity SDK build" workflow'
9
- default : ' 0'
10
- required : true
8
+ description : ' run # of "Firebase Unity SDK build" workflow. (If Leave it empty, the latest released Unity SDK will be used.)'
11
9
unity_versions :
12
10
description : ' Unity version'
13
11
default : ' 2019'
@@ -194,15 +192,16 @@ jobs:
194
192
U3D_SKIP_UPDATE_CHECK : 1
195
193
steps :
196
194
- uses : actions/checkout@v2
195
+ - uses : ruby/setup-ruby@v1
196
+ with :
197
+ ruby-version : 3.0.2
197
198
- name : Install Unity installer (U3D)
198
199
uses : nick-invision/retry@v2
199
200
with :
200
201
timeout_minutes : 10
201
202
max_attempts : 3
202
203
shell : bash
203
- command : |
204
- gem install u3d -v 1.2.3
205
- u3d available
204
+ command : gem install u3d -v 1.2.3
206
205
- name : Setup python
207
206
uses : actions/setup-python@v2
208
207
with :
@@ -218,7 +217,7 @@ jobs:
218
217
timeout_minutes : 30
219
218
max_attempts : 3
220
219
shell : bash
221
- command : |
220
+ command : |
222
221
python scripts/gha/unity_installer.py --install \
223
222
--platforms ${{ matrix.platform }} \
224
223
--version ${{ matrix.unity_version }}
@@ -238,6 +237,7 @@ jobs:
238
237
run : |
239
238
python scripts/gha/restore_secrets.py --passphrase "${{ secrets.TEST_SECRET }}"
240
239
- name : Fetch prebuilt packaged SDK from previous run
240
+ if : ${{ github.event.inputs.packaged_sdk_run_id != '' }}
241
241
uses : dawidd6/action-download-artifact@v2
242
242
with :
243
243
name : ' firebase_unity_sdk.zip'
@@ -247,7 +247,12 @@ jobs:
247
247
timeout-minutes : 240
248
248
shell : bash
249
249
run : |
250
- unzip -q firebase_unity_sdk.zip -d ~/Downloads/
250
+ if [[ -n "${{ github.event.inputs.packaged_sdk_run_id }}" ]]; then
251
+ unzip -q firebase_unity_sdk.zip -d ~/Downloads/
252
+ else
253
+ curl -L "https://firebase.google.com/download/unity" -o ~/Downloads/firebase_unity_sdk.zip
254
+ unzip -q ~/Downloads/firebase_unity_sdk.zip -d ~/Downloads/
255
+ fi
251
256
python scripts/gha/build_testapps.py \
252
257
--t ${{ needs.check_and_prepare.outputs.apis }} \
253
258
--u $( python scripts/gha/print_matrix_configuration.py -k version -u ${{matrix.unity_version}}) \
@@ -382,17 +387,20 @@ jobs:
382
387
LC_ALL : en_US.UTF-8
383
388
LANG : en_US.UTF-8
384
389
U3D_PASSWORD : " "
390
+ # Disable checking for U3D updates, since it is buggy
391
+ U3D_SKIP_UPDATE_CHECK : 1
385
392
steps :
386
393
- uses : actions/checkout@v2
394
+ - uses : ruby/setup-ruby@v1
395
+ with :
396
+ ruby-version : 3.0.2
387
397
- name : Install Unity installer (U3D)
388
398
uses : nick-invision/retry@v2
389
399
with :
390
400
timeout_minutes : 10
391
401
max_attempts : 3
392
402
shell : bash
393
- command : |
394
- gem install u3d
395
- u3d available
403
+ command : gem install u3d -v 1.2.3
396
404
- name : Setup python
397
405
uses : actions/setup-python@v2
398
406
with :
@@ -405,10 +413,10 @@ jobs:
405
413
- name : Install Unity
406
414
uses : nick-invision/retry@v2
407
415
with :
408
- timeout_minutes : 15
416
+ timeout_minutes : 20
409
417
max_attempts : 3
410
418
shell : bash
411
- command : |
419
+ command : |
412
420
python scripts/gha/unity_installer.py --install \
413
421
--version ${{ matrix.unity_version }}
414
422
- name : Activate Unity license
@@ -427,15 +435,21 @@ jobs:
427
435
run : |
428
436
python scripts/gha/restore_secrets.py --passphrase "${{ secrets.TEST_SECRET }}"
429
437
- name : Fetch prebuilt packaged SDK from previous run
438
+ if : ${{ github.event.inputs.packaged_sdk_run_id != '' }}
430
439
uses : dawidd6/action-download-artifact@v2
431
440
with :
432
441
name : ' firebase_unity_sdk.zip'
433
442
workflow : ' build_starter.yml'
434
- run_id : ${{ github.event.inputs.packaged_sdk_run_id }}
443
+ run_id : ${{ github.event.inputs.packaged_sdk_run_id }}
435
444
- name : Run Playmode (in editor mode) integration tests
436
445
shell : bash
437
446
run : |
438
- unzip -q firebase_unity_sdk.zip -d ~/Downloads/
447
+ if [[ -n "${{ github.event.inputs.packaged_sdk_run_id }}" ]]; then
448
+ unzip -q firebase_unity_sdk.zip -d ~/Downloads/
449
+ else
450
+ curl -L "https://firebase.google.com/download/unity" -o ~/Downloads/firebase_unity_sdk.zip
451
+ unzip -q ~/Downloads/firebase_unity_sdk.zip -d ~/Downloads/
452
+ fi
439
453
python scripts/gha/build_testapps.py \
440
454
--t ${{ needs.check_and_prepare.outputs.apis }} \
441
455
--u $( python scripts/gha/print_matrix_configuration.py -k version -u ${{matrix.unity_version}}) \
0 commit comments