27 api.vars.setup()
28
29 checkout_root = api.path.start_dir
30 out_dir = api.vars.cache_dir.join(
31 'work', 'skia', 'out', api.vars.builder_name, api.vars.configuration)
32
33 try:
34 api.build(checkout_root=checkout_root, out_dir=out_dir)
35
36
37 dst = api.vars.swarming_out_dir
38 api.build.copy_build_products(out_dir=out_dir, dst=dst)
39 finally:
40 if 'Win' in api.vars.builder_cfg.get('os', ''):
41 script = api.build.resource('cleanup_win_processes.py')
42 api.step(
43 name='cleanup',
44 cmd=['vpython3', script],
45 infra_step=True)
46
47 api.run.check_failure()
48
49