Skip to content

Commit 05ed6d8

Browse files
authored
Update print_matrix script to support integration test CI (#499)
Updates to `print_matrix_configuration.py` to support tvOS builds in the Integration Test Workflow. I have not changed the Integration Test workflow to enable tvOS builds by default yet since `build_testapps.py` doesn't yet support tvOs testing (but that's next).
1 parent 3a9b849 commit 05ed6d8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/gha/print_matrix_configuration.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,14 @@
6060
MACOS_RUNNER = "macos-latest"
6161
LINUX_RUNNER = "ubuntu-latest"
6262

63+
# TODO @drsanta add TVOS to the platforms once the integration tests can be run on tvOS.
6364
PARAMETERS = {
6465
"integration_tests": {
6566
"matrix": {
6667
"unity_versions": ["2020"],
6768
"build_os": [""],
6869
"platforms": [WINDOWS, MACOS, LINUX, ANDROID, IOS, PLAYMODE],
69-
"mobile_devices": ["android_target", "ios_target"],
70+
"mobile_devices": ["android_target", "ios_target", "tvos_simulator"],
7071
"mobile_test_on": ["real"],
7172

7273
MINIMAL_KEY: {
@@ -77,7 +78,7 @@
7778
"build_os": [MACOS_RUNNER,WINDOWS_RUNNER],
7879
"unity_versions": ["2020"],
7980
"mobile_test_on": ["real", "virtual"],
80-
"mobile_devices": ["android_target", "ios_target", "simulator_target"],
81+
"mobile_devices": ["android_target", "ios_target", "simulator_target", "tvos_simulator"],
8182
}
8283
},
8384
"config": {
@@ -141,6 +142,7 @@
141142
"simulator_min": {"platform": IOS, "type": "virtual", "name": "iPhone 6", "version": "11.4"},
142143
"simulator_target": {"platform": IOS, "type": "virtual", "name": "iPhone 8", "version": "14.5"},
143144
"simulator_latest": {"platform": IOS, "type": "virtual", "name": "iPhone 11", "version": "14.4"},
145+
"tvos_simulator": {"platform": TVOS, "type": "virtual", "name": "Apple TV", "version": "14.3"},
144146
}
145147

146148

@@ -340,7 +342,7 @@ def get_testapp_test_matrix(matrix_type, unity_versions, platforms, build_os, mo
340342
device_platform = TEST_DEVICES.get(mobile_device).get("platform")
341343
if device_platform == platform and device_type in mobile_device_types:
342344
test_os = _get_test_os(platform, device_type)
343-
ios_sdk = device_type if device_platform == IOS else "NA"
345+
ios_sdk = device_type if device_platform == IOS or device_platform == TVOS else "NA"
344346
matrix["include"].append({"unity_version": unity_version, "platform": platform, "build_os": build_os, "test_os": test_os, "test_device": mobile_device, "device_detail": device_detail, "device_type": device_type, "ios_sdk": ios_sdk})
345347

346348
return matrix

0 commit comments

Comments
 (0)