Skip to content

Commit

Permalink
fix: fix the re expression in build wheel scripts (#119)
Browse files Browse the repository at this point in the history
Fix the broken CI/CD.
  • Loading branch information
yzh119 authored Feb 17, 2024
1 parent c68d7ea commit 2e982ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release_wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
for path in sorted(pathlib.Path("python/dist").glob("*.whl")):
with open(path, "rb") as f:
sha256 = hashlib.sha256(f.read()).hexdigest()
ver, cu, torch = re.findall(r"flashinfer-([0-9.]+)\+cu(\d+)\+torch([0-9.]+)-", path.name)[0]
ver, cu, torch = re.findall(r"flashinfer-([0-9.]+)\+cu(\d+)\torch([0-9.]+)-", path.name)[0]
with open(f"flashinfer-whl/cu{cu}/torch{torch}/flashinfer/index.html", "a") as f:
f.write(f'<a href="https://github.com/flashinfer-ai/flashinfer/releases/download/v{ver}/{path.name}#sha256={sha256}">{path.name}</a><br>\n')
Expand Down

0 comments on commit 2e982ea

Please sign in to comment.