Skip to content

Commit 8fba07a

Browse files
authored
[Bugfix] download android ndk only once (#424)
1 parent 971c836 commit 8fba07a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/gha/build_testapps.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,12 @@ def main(argv):
294294

295295
testapps = validate_testapps(FLAGS.testapps, config.apis)
296296
platforms = validate_platforms(FLAGS.platforms)
297-
298297
output_root = os.path.join(root_output_dir, "testapps")
299298
playmode_tests = []
300299
failures = []
301300
for version in unity_versions:
301+
if _ANDROID in platforms:
302+
patch_android_env(version)
302303
runtime = get_runtime(version, FLAGS.force_latest_runtime)
303304
output_dir = get_output_dir(output_root, str(version), runtime, timestamp)
304305
logging.info("Output directory: %s", output_dir)
@@ -327,8 +328,6 @@ def main(argv):
327328
build_desc = "{0}, .NET{1}, Unity{2}".format(
328329
testapp, runtime, str(version))
329330
logging.info("BEGIN %s", build_desc)
330-
if _ANDROID in platforms:
331-
patch_android_env(version)
332331
try:
333332
setup_unity_project(dir_helper, setup_options)
334333
except (subprocess.SubprocessError, RuntimeError) as e:

0 commit comments

Comments
 (0)