57
57
github_ref : ${{ steps.set_outputs.outputs.github_ref }}
58
58
pr_number : ${{ steps.set_outputs.outputs.pr_number }}
59
59
matrix_build_os : ${{ steps.matrix_config.outputs.matrix_build_os }}
60
+ matrix_build_platform : ${{ steps.matrix_config.outputs.matrix_build_platform }}
60
61
matrix_unity_versions : ${{ steps.matrix_config.outputs.matrix_unity_versions }}
61
62
matrix_desktop_os : ${{ steps.matrix_config.outputs.matrix_desktop_os }}
62
63
matrix_mobile_platform : ${{ steps.matrix_config.outputs.matrix_mobile_platform }}
@@ -174,6 +175,7 @@ jobs:
174
175
echo "::set-output name=platform::${platform}"
175
176
echo "::set-output name=matrix_desktop_os::$( python scripts/gha/print_matrix_configuration.py -w integration_tests ${TEST_MATRIX_PARAM} -k "${platform}" -desktop_os=1)"
176
177
echo "::set-output name=matrix_mobile_platform::$( python scripts/gha/print_matrix_configuration.py -w integration_tests ${TEST_MATRIX_PARAM} -k "${platform}" -mobile_platform=1)"
178
+ echo "::set-output name=matrix_build_platform::$( python scripts/gha/print_matrix_configuration.py -w integration_tests ${TEST_MATRIX_PARAM} -k "${platform}" -build_platform=1)"
177
179
echo "::set-output name=matrix_build_os::$( python scripts/gha/print_matrix_configuration.py -w integration_tests ${TEST_MATRIX_PARAM} -k build_os -o "${{github.event.inputs.build_os}}")"
178
180
echo "::set-output name=matrix_unity_versions::$( python scripts/gha/print_matrix_configuration.py -w integration_tests ${TEST_MATRIX_PARAM} -k unity_version -o "${{github.event.inputs.unity_versions}}")"
179
181
mobile_test_on=$( python scripts/gha/print_matrix_configuration.py -c -w integration_tests -k mobile_test_on -o "${{github.event.inputs.mobile_test_on}}")
@@ -191,14 +193,15 @@ jobs:
191
193
--run_id ${{github.run_id}}
192
194
193
195
build :
194
- name : build-${{ matrix.unity_version }}-${{matrix.os}}-${{ needs.check_and_prepare.outputs .platform }}
196
+ name : build-${{ matrix.unity_version }}-${{matrix.os}}-${{ matrix .platform }}
195
197
runs-on : ${{matrix.os}}
196
198
needs : check_and_prepare
197
199
strategy :
198
200
fail-fast : false
199
201
matrix :
200
202
unity_version : ${{ fromJson(needs.check_and_prepare.outputs.matrix_unity_versions) }}
201
203
os : ${{ fromJson(needs.check_and_prepare.outputs.matrix_build_os) }}
204
+ platform : ${{ fromJson(needs.check_and_prepare.outputs.matrix_build_platform) }}
202
205
env :
203
206
# LC_ALL, LANG and U3D_PASSWORD are needed for U3D.
204
207
LC_ALL : en_US.UTF-8
@@ -227,7 +230,7 @@ jobs:
227
230
shell : bash
228
231
run : |
229
232
python scripts/gha/unity_installer.py --install \
230
- --platforms ${{ needs.check_and_prepare.outputs .platform }} \
233
+ --platforms ${{ matrix .platform }} \
231
234
--version ${{ matrix.unity_version }}
232
235
- name : Activate Unity license
233
236
timeout-minutes : 10
@@ -269,11 +272,11 @@ jobs:
269
272
python scripts/gha/build_testapps.py \
270
273
--t ${{ needs.check_and_prepare.outputs.apis }} \
271
274
--u $( python scripts/gha/print_matrix_configuration.py -k version -u ${{matrix.unity_version}}) \
272
- --p ${{ needs.check_and_prepare.outputs .platform }} \
275
+ --p ${{ matrix .platform }} \
273
276
--ios_sdk ${{ needs.check_and_prepare.outputs.mobile_test_on }} \
274
277
--plugin_dir ~/Downloads/firebase_unity_sdk \
275
278
--output_directory "${{ github.workspace }}" \
276
- --artifact_name "${{ matrix.unity_version }}-${{matrix.os}}-${{ needs.check_and_prepare.outputs .platform }}" \
279
+ --artifact_name "${{ matrix.unity_version }}-${{matrix.os}}-${{ matrix .platform }}" \
277
280
--force_latest_runtime \
278
281
--ci
279
282
- name : Return Unity license
@@ -294,67 +297,67 @@ jobs:
294
297
if : ${{ !cancelled() }}
295
298
shell : bash
296
299
run : |
297
- if [ ! -f build-results-${{ matrix.unity_version }}-${{matrix.os}}-${{ needs.check_and_prepare.outputs .platform }}.log.json ]; then
300
+ if [ ! -f build-results-${{ matrix.unity_version }}-${{matrix.os}}-${{ matrix .platform }}.log.json ]; then
298
301
# No summary was created, make a placeholder one.
299
- echo "__SUMMARY_MISSING__" > build-results-${{ matrix.unity_version }}-${{matrix.os}}-${{ needs.check_and_prepare.outputs .platform }}.log.json
302
+ echo "__SUMMARY_MISSING__" > build-results-${{ matrix.unity_version }}-${{matrix.os}}-${{ matrix .platform }}.log.json
300
303
fi
301
304
- name : Upload build results artifact
302
305
303
306
if : ${{ !cancelled() }}
304
307
with :
305
308
name : log-artifact
306
- path : build-results-${{ matrix.unity_version }}-${{matrix.os}}-${{ needs.check_and_prepare.outputs .platform }}*
309
+ path : build-results-${{ matrix.unity_version }}-${{matrix.os}}-${{ matrix .platform }}*
307
310
retention-days : ${{ env.artifactRetentionDays }}
308
311
- name : Upload Android integration tests artifact
309
312
310
- if : contains(needs.check_and_prepare.outputs .platform, 'Android') && ${{ !cancelled() }}
313
+ if : contains(matrix .platform, 'Android') && ${{ !cancelled() }}
311
314
with :
312
315
name : testapps-${{ matrix.unity_version }}-${{matrix.os}}-Android
313
- path : testapps-${{ matrix.unity_version }}-${{matrix.os}}-${{ needs.check_and_prepare.outputs .platform }}/Android
316
+ path : testapps-${{ matrix.unity_version }}-${{matrix.os}}-${{ matrix .platform }}/Android
314
317
retention-days : ${{ env.artifactRetentionDays }}
315
318
- name : Delete Android integration tests artifact
316
319
if : contains(needs.check_and_prepare.outputs.platform, 'Android') && ${{ !cancelled() }}
317
320
shell : bash
318
321
run : rm -rf testapps-${{ matrix.unity_version }}-${{matrix.os}}-${{ needs.check_and_prepare.outputs.platform }}/Android || true
319
322
- name : Upload iOS integration tests artifact
320
323
321
- if : contains(needs.check_and_prepare.outputs .platform, 'iOS') && ${{ !cancelled() }}
324
+ if : contains(matrix .platform, 'iOS') && ${{ !cancelled() }}
322
325
with :
323
326
name : testapps-${{ matrix.unity_version }}-${{matrix.os}}-iOS
324
- path : testapps-${{ matrix.unity_version }}-${{matrix.os}}-${{ needs.check_and_prepare.outputs .platform }}/iOS
327
+ path : testapps-${{ matrix.unity_version }}-${{matrix.os}}-${{ matrix .platform }}/iOS
325
328
retention-days : ${{ env.artifactRetentionDays }}
326
329
- name : Delete iOS integration tests artifact
327
330
if : contains(needs.check_and_prepare.outputs.platform, 'iOS') && ${{ !cancelled() }}
328
331
shell : bash
329
332
run : rm -rf testapps-${{ matrix.unity_version }}-${{matrix.os}}-${{ needs.check_and_prepare.outputs.platform }}/iOS || true
330
333
- name : Upload Linux integration tests artifact
331
334
332
- if : contains(needs.check_and_prepare.outputs .platform, 'Linux') && ${{ !cancelled() }}
335
+ if : contains(matrix .platform, 'Linux') && ${{ !cancelled() }}
333
336
with :
334
337
name : testapps-${{ matrix.unity_version }}-${{matrix.os}}-ubuntu-latest
335
- path : testapps-${{ matrix.unity_version }}-${{matrix.os}}-${{ needs.check_and_prepare.outputs .platform }}/Linux
338
+ path : testapps-${{ matrix.unity_version }}-${{matrix.os}}-${{ matrix .platform }}/Linux
336
339
retention-days : ${{ env.artifactRetentionDays }}
337
340
- name : Delete Linux integration tests artifact
338
341
if : contains(needs.check_and_prepare.outputs.platform, 'Linux') && ${{ !cancelled() }}
339
342
shell : bash
340
343
run : rm -rf testapps-${{ matrix.unity_version }}-${{matrix.os}}-${{ needs.check_and_prepare.outputs.platform }}/Linux || true
341
344
- name : Upload macOS integration tests artifact
342
345
343
- if : contains(needs.check_and_prepare.outputs .platform, 'macOS') && ${{ !cancelled() }}
346
+ if : contains(matrix .platform, 'macOS') && ${{ !cancelled() }}
344
347
with :
345
348
name : testapps-${{ matrix.unity_version }}-${{matrix.os}}-macos-latest
346
- path : testapps-${{ matrix.unity_version }}-${{matrix.os}}-${{ needs.check_and_prepare.outputs .platform }}/macOS
349
+ path : testapps-${{ matrix.unity_version }}-${{matrix.os}}-${{ matrix .platform }}/macOS
347
350
retention-days : ${{ env.artifactRetentionDays }}
348
351
- name : Delete macOS integration tests artifact
349
352
if : contains(needs.check_and_prepare.outputs.platform, 'macOS') && ${{ !cancelled() }}
350
353
shell : bash
351
354
run : rm -rf testapps-${{ matrix.unity_version }}-${{matrix.os}}-${{ needs.check_and_prepare.outputs.platform }}/macOS || true
352
355
- name : Upload Windows integration tests artifact
353
356
354
- if : contains(needs.check_and_prepare.outputs .platform, 'Windows') && ${{ !cancelled() }}
357
+ if : contains(matrix .platform, 'Windows') && ${{ !cancelled() }}
355
358
with :
356
359
name : testapps-${{ matrix.unity_version }}-${{matrix.os}}-windows-latest
357
- path : testapps-${{ matrix.unity_version }}-${{matrix.os}}-${{ needs.check_and_prepare.outputs. platform }}/Windows
360
+ path : testapps-${{ matrix.unity_version }}-${{matrix.os}}-${{ matrix. platform}}/Windows
358
361
retention-days : ${{ env.artifactRetentionDays }}
359
362
- name : Delete Windows integration tests artifact
360
363
if : contains(needs.check_and_prepare.outputs.platform, 'Windows') && ${{ !cancelled() }}
@@ -380,7 +383,7 @@ jobs:
380
383
if : ${{ !cancelled() }}
381
384
shell : bash
382
385
run : |
383
- cat build-results-${{ matrix.unity_version }}-${{matrix.os}}-${{ needs.check_and_prepare.outputs .platform }}.log
386
+ cat build-results-${{ matrix.unity_version }}-${{matrix.os}}-${{ matrix .platform }}.log
384
387
if [[ "${{ job.status }}" != "success" ]]; then
385
388
exit 1
386
389
fi
0 commit comments