17FILE_DIR = os.path.dirname(os.path.abspath(__file__))
18INFRA_BOTS_DIR = os.path.realpath(os.path.join(FILE_DIR, os.pardir, os.pardir))
19sys.path.insert(0, INFRA_BOTS_DIR)
23SDK_VERSION=
'1.3.211.0'
24SDK_URL=(
'https://sdk.lunarg.com/sdk/download/%s/linux/'
25 'vulkansdk-linux-x86_64-%s.tar.gz' % (SDK_VERSION, SDK_VERSION))
29 """Create the asset."""
31 tarball =
'vulkansdk-linux.tar.gz'
32 subprocess.check_call([
'curl', SDK_URL,
'--output', tarball])
33 subprocess.check_call([
'tar',
'--extract',
'--verbose',
34 '--file=%s' % tarball,
'--gunzip',
35 '--directory=%s' % target_dir,
36 '--strip-components=2',
37 '%s/x86_64' % SDK_VERSION])
41 if 'linux' not in sys.platform:
42 print(
'This script only runs on Linux.', file=sys.stderr)
44 parser = argparse.ArgumentParser()
45 parser.add_argument(
'--target_dir',
'-t', required=
True)
46 args = parser.parse_args()
50if __name__ ==
'__main__':
def create_asset(target_dir)
def print(*args, **kwargs)