Skip to content

Commit

Permalink
[Bugfix] download android ndk only once (#424)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunmou99 authored Jul 27, 2022
1 parent 971c836 commit 8fba07a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/gha/build_testapps.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,12 @@ def main(argv):

testapps = validate_testapps(FLAGS.testapps, config.apis)
platforms = validate_platforms(FLAGS.platforms)

output_root = os.path.join(root_output_dir, "testapps")
playmode_tests = []
failures = []
for version in unity_versions:
if _ANDROID in platforms:
patch_android_env(version)
runtime = get_runtime(version, FLAGS.force_latest_runtime)
output_dir = get_output_dir(output_root, str(version), runtime, timestamp)
logging.info("Output directory: %s", output_dir)
Expand Down Expand Up @@ -327,8 +328,6 @@ def main(argv):
build_desc = "{0}, .NET{1}, Unity{2}".format(
testapp, runtime, str(version))
logging.info("BEGIN %s", build_desc)
if _ANDROID in platforms:
patch_android_env(version)
try:
setup_unity_project(dir_helper, setup_options)
except (subprocess.SubprocessError, RuntimeError) as e:
Expand Down

0 comments on commit 8fba07a

Please sign in to comment.