Skip to content

Commit e2b5e9d

Browse files
authored
[build] Add support for extracting .tar.xz archives in dep.py (#8721)
fix new vulkan extension packages
1 parent 8fe47c7 commit e2b5e9d

File tree

1 file changed

+3
-0
lines changed
  • .github/workflows/scripts/ti_build

1 file changed

+3
-0
lines changed

.github/workflows/scripts/ti_build/dep.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ def download_dep(url, outdir, *, strip=0, force=False, args=None, plain=False, e
153153
elif name.endswith(".tar.gz") or name.endswith(".tgz"):
154154
outdir.mkdir(parents=True, exist_ok=True)
155155
tar("-xzf", local_cached, "-C", outdir, f"--strip-components={strip}")
156+
elif name.endswith(".tar.xz"):
157+
outdir.mkdir(parents=True, exist_ok=True)
158+
tar("-xJf", local_cached, "-C", outdir, f"--strip-components={strip}")
156159
elif name.endswith(".sh"):
157160
bash(local_cached, *args)
158161
elif "." not in name and args is not None:

0 commit comments

Comments
 (0)