add suffix for xpu kernel upload space (#36422)

Co-authored-by: Alex Nails <alex.nails@radixark.ai>
This commit is contained in:
Zaili Wang
2026-08-30 22:41:22 -07:00
committed by GitHub
co-authored by Alex Nails
parent 5d12ad4fd7
commit afbca97f74
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ jobs:
- name: Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ inputs.tag_name }}
tag_name: ${{ inputs.tag_name }}+xpu
repository: sgl-project/whl
token: ${{ secrets.GH_PAT_FOR_WHL_RELEASE }}
files: |
+3 -1
View File
@@ -55,6 +55,7 @@ def _update_non_cuda_wheel_index(
version=None,
package_name="sglang_kernel",
index_package_name="sglang-kernel",
release_tag_suffix="",
):
backend_dir = f"{backend}{version or ''}"
index_dir = pathlib.Path(f"sgl-whl/{backend_dir}/{index_package_name}")
@@ -71,7 +72,7 @@ def _update_non_cuda_wheel_index(
rf"{re.escape(package_name)}-([0-9.]+(?:\.post[0-9]+)?)(?:\+{backend}[0-9]+)?-",
path.name,
)[0]
full_url = f"{base_url}/v{ver}/{path.name}#sha256={sha256}"
full_url = f"{base_url}/v{ver}{release_tag_suffix}/{path.name}#sha256={sha256}"
with (index_dir / "index.html").open("a") as f:
f.write(f'<a href="{full_url}">{path.name}</a><br>\n')
@@ -81,6 +82,7 @@ def update_wheel_index_xpu():
"xpu",
package_name="sglang_kernel_xpu",
index_package_name="sglang-kernel-xpu",
release_tag_suffix="+xpu",
)