1[ 2 { 3 "cmd": [], 4 "name": "ensure xcode", 5 "~followup_annotations": [ 6 "@@@STEP_TEXT@Ensuring Xcode version 9c40b in [START_DIR]/cache/Xcode.app@@@" 7 ] 8 }, 9 { 10 "cmd": [ 11 "[START_DIR]/mac_toolchain/mac_toolchain", 12 "install", 13 "-kind", 14 "ios", 15 "-xcode-version", 16 "9c40b", 17 "-output-dir", 18 "[START_DIR]/cache/Xcode.app" 19 ], 20 "name": "ensure xcode.install xcode", 21 "~followup_annotations": [ 22 "@@@STEP_NEST_LEVEL@1@@@" 23 ] 24 }, 25 { 26 "cmd": [ 27 "sudo", 28 "xcode-select", 29 "-switch", 30 "[START_DIR]/cache/Xcode.app" 31 ], 32 "name": "ensure xcode.select xcode", 33 "~followup_annotations": [ 34 "@@@STEP_NEST_LEVEL@1@@@" 35 ] 36 }, 37 { 38 "cmd": [ 39 "python", 40 "-u", 41 "[START_DIR]/cache/work/skia/bin/fetch-gn" 42 ], 43 "cwd": "[START_DIR]/cache/work/skia", 44 "env": { 45 "CHROME_HEADLESS": "1", 46 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 47 }, 48 "infra_step": true, 49 "name": "fetch-gn" 50 }, 51 { 52 "cmd": [ 53 "[START_DIR]/cache/work/skia/bin/gn", 54 "gen", 55 "[START_DIR]/cache/work/skia/out/Build-Mac-Clang-x86_64-Debug-Metal/Debug", 56 "--args=cc=\"clang\" cxx=\"clang++\" extra_cflags=[\"-DDUMMY_xcode_build_version=9c40b\", \"-O1\"] skia_use_metal=true target_cpu=\"x86_64\"" 57 ], 58 "cwd": "[START_DIR]/cache/work/skia", 59 "env": { 60 "CHROME_HEADLESS": "1", 61 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 62 }, 63 "name": "gn gen" 64 }, 65 { 66 "cmd": [ 67 "ninja", 68 "-C", 69 "[START_DIR]/cache/work/skia/out/Build-Mac-Clang-x86_64-Debug-Metal/Debug" 70 ], 71 "cwd": "[START_DIR]/cache/work/skia", 72 "env": { 73 "CHROME_HEADLESS": "1", 74 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 75 }, 76 "name": "ninja" 77 }, 78 { 79 "cmd": [ 80 "python", 81 "-u", 82 "import errno\nimport glob\nimport os\nimport shutil\nimport sys\n\nsrc = sys.argv[1]\ndst = sys.argv[2]\nbuild_products_whitelist = ['dm', 'dm.exe', 'dm.app', 'nanobench.app', 'get_images_from_skps', 'get_images_from_skps.exe', 'hello-opencl', 'hello-opencl.exe', 'nanobench', 'nanobench.exe', 'skpbench', 'skpbench.exe', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'skiaserve', 'skottie_tool', 'lib/*.so', 'run_testlab', 'skqp-universal-debug.apk', 'whitelist_devices.json']\n\ntry:\n os.makedirs(dst)\nexcept OSError as e:\n if e.errno != errno.EEXIST:\n raise\n\nfor pattern in build_products_whitelist:\n path = os.path.join(src, pattern)\n for f in glob.glob(path):\n dst_path = os.path.join(dst, os.path.relpath(f, src))\n if not os.path.isdir(os.path.dirname(dst_path)):\n os.makedirs(os.path.dirname(dst_path))\n print 'Copying build product %s to %s' % (f, dst_path)\n shutil.move(f, dst_path)\n", 83 "[START_DIR]/cache/work/skia/out/Build-Mac-Clang-x86_64-Debug-Metal/Debug", 84 "[START_DIR]/[SWARM_OUT_DIR]/out/Debug" 85 ], 86 "infra_step": true, 87 "name": "copy build products", 88 "~followup_annotations": [ 89 "@@@STEP_LOG_LINE@python.inline@import errno@@@", 90 "@@@STEP_LOG_LINE@python.inline@import glob@@@", 91 "@@@STEP_LOG_LINE@python.inline@import os@@@", 92 "@@@STEP_LOG_LINE@python.inline@import shutil@@@", 93 "@@@STEP_LOG_LINE@python.inline@import sys@@@", 94 "@@@STEP_LOG_LINE@python.inline@@@@", 95 "@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@", 96 "@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@", 97 "@@@STEP_LOG_LINE@python.inline@build_products_whitelist = ['dm', 'dm.exe', 'dm.app', 'nanobench.app', 'get_images_from_skps', 'get_images_from_skps.exe', 'hello-opencl', 'hello-opencl.exe', 'nanobench', 'nanobench.exe', 'skpbench', 'skpbench.exe', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'skiaserve', 'skottie_tool', 'lib/*.so', 'run_testlab', 'skqp-universal-debug.apk', 'whitelist_devices.json']@@@", 98 "@@@STEP_LOG_LINE@python.inline@@@@", 99 "@@@STEP_LOG_LINE@python.inline@try:@@@", 100 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(dst)@@@", 101 "@@@STEP_LOG_LINE@python.inline@except OSError as e:@@@", 102 "@@@STEP_LOG_LINE@python.inline@ if e.errno != errno.EEXIST:@@@", 103 "@@@STEP_LOG_LINE@python.inline@ raise@@@", 104 "@@@STEP_LOG_LINE@python.inline@@@@", 105 "@@@STEP_LOG_LINE@python.inline@for pattern in build_products_whitelist:@@@", 106 "@@@STEP_LOG_LINE@python.inline@ path = os.path.join(src, pattern)@@@", 107 "@@@STEP_LOG_LINE@python.inline@ for f in glob.glob(path):@@@", 108 "@@@STEP_LOG_LINE@python.inline@ dst_path = os.path.join(dst, os.path.relpath(f, src))@@@", 109 "@@@STEP_LOG_LINE@python.inline@ if not os.path.isdir(os.path.dirname(dst_path)):@@@", 110 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(os.path.dirname(dst_path))@@@", 111 "@@@STEP_LOG_LINE@python.inline@ print 'Copying build product %s to %s' % (f, dst_path)@@@", 112 "@@@STEP_LOG_LINE@python.inline@ shutil.move(f, dst_path)@@@", 113 "@@@STEP_LOG_END@python.inline@@@" 114 ] 115 }, 116 { 117 "jsonResult": null, 118 "name": "$result" 119 } 120]