Rename rust folder to sgl-router (#2464)
Signed-off-by: Ata Fatahi <immrata@gmail.com>
This commit is contained in:
12
.github/workflows/pr-test-rust.yml
vendored
12
.github/workflows/pr-test-rust.yml
vendored
@@ -4,11 +4,11 @@ on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
paths:
|
||||
- "rust/**"
|
||||
- "sgl-router/**"
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
paths:
|
||||
- "rust/**"
|
||||
- "sgl-router/**"
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
@@ -30,14 +30,14 @@ jobs:
|
||||
- name: Run fmt
|
||||
run: |
|
||||
source "$HOME/.cargo/env"
|
||||
cd rust/
|
||||
cd sgl-router/
|
||||
cargo fmt -- --check
|
||||
|
||||
- name: Run test
|
||||
timeout-minutes: 20
|
||||
run: |
|
||||
source "$HOME/.cargo/env"
|
||||
cd rust/
|
||||
cd sgl-router/
|
||||
cargo test
|
||||
|
||||
e2e-rust:
|
||||
@@ -54,14 +54,14 @@ jobs:
|
||||
- name: Build python binding
|
||||
run: |
|
||||
source "$HOME/.cargo/env"
|
||||
cd rust
|
||||
cd sgl-router
|
||||
pip install setuptools-rust wheel build
|
||||
python3 -m build
|
||||
pip install --force-reinstall dist/*.whl
|
||||
- name: Run e2e test
|
||||
run: |
|
||||
bash scripts/killall_sglang.sh
|
||||
cd rust/py_test
|
||||
cd sgl-router/py_test
|
||||
python3 run_suite.py
|
||||
|
||||
finish:
|
||||
|
||||
10
.github/workflows/release-pypi-router.yml
vendored
10
.github/workflows/release-pypi-router.yml
vendored
@@ -7,7 +7,7 @@ on:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- rust/pyproject.toml
|
||||
- sglang-router/pyproject.toml
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
@@ -26,9 +26,9 @@ jobs:
|
||||
with:
|
||||
path: sglang-repo
|
||||
|
||||
- name: Move rust folder to root and delete sglang-repo
|
||||
- name: Move sglang-router folder to root and delete sglang-repo
|
||||
run: |
|
||||
mv sglang-repo/rust/* .
|
||||
mv sglang-repo/sglang-router/* .
|
||||
rm -rf sglang-repo
|
||||
ls -alt
|
||||
|
||||
@@ -69,9 +69,9 @@ jobs:
|
||||
with:
|
||||
path: sglang-repo
|
||||
|
||||
- name: Move rust folder to root, copy the license file, and delete sglang-repo
|
||||
- name: Move sglang-router folder to root, copy the license file, and delete sglang-repo
|
||||
run: |
|
||||
mv sglang-repo/rust/* .
|
||||
mv sglang-repo/sglang-router/* .
|
||||
mv sglang-repo/LICENSE .
|
||||
rm -rf sglang-repo
|
||||
ls -alt
|
||||
|
||||
Reference in New Issue
Block a user