-
Notifications
You must be signed in to change notification settings - Fork 806
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow for sgl-kernel cu118 release (#3109)
- Loading branch information
Showing
2 changed files
with
66 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Release SGLang Kernel Wheel (cu118) | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag_name: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build-wheels: | ||
if: github.repository == 'sgl-project/sglang' | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ['3.9', '3.10', '3.11', '3.12'] | ||
cuda-version: ['11.8'] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Build wheels for Python ${{ matrix.python-version }} and CUDA ${{ matrix.cuda-version }} | ||
run: | | ||
cd sgl-kernel | ||
chmod +x ./build.sh | ||
./build.sh "${{ matrix.python-version }}" "${{ matrix.cuda-version }}" | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: wheel-python${{ matrix.python-version }}-cuda${{ matrix.cuda-version }} | ||
path: sgl-kernel/dist/* | ||
|
||
release: | ||
needs: build-wheels | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: sgl-kernel/dist/ | ||
merge-multiple: true | ||
pattern: wheel-* | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
tag_name: ${{ inputs.tag_name }} | ||
repository: sgl-project/whl | ||
token: ${{ secrets.WHL_TOKEN }} | ||
files: | | ||
sgl-kernel/dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters