From 4f0e28d7fca5c8f3cea424e82b04b6ffec03fda7 Mon Sep 17 00:00:00 2001 From: Keyang Ru Date: Fri, 5 Sep 2025 09:58:59 -0700 Subject: [PATCH] [router] add rust cache for rust unit test (#10079) --- .github/workflows/pr-test-rust.yml | 5 +++++ sgl-router/README.md | 1 + 2 files changed, 6 insertions(+) diff --git a/.github/workflows/pr-test-rust.yml b/.github/workflows/pr-test-rust.yml index 319cbce70..6c403b83b 100644 --- a/.github/workflows/pr-test-rust.yml +++ b/.github/workflows/pr-test-rust.yml @@ -27,6 +27,11 @@ jobs: run: | bash scripts/ci/ci_install_rust.sh + - name: Rust cache + uses: Swatinem/rust-cache@v2 + with: + workspaces: sgl-router + - name: Run lint run: | source "$HOME/.cargo/env" diff --git a/sgl-router/README.md b/sgl-router/README.md index 90f762469..ac2999b14 100644 --- a/sgl-router/README.md +++ b/sgl-router/README.md @@ -377,6 +377,7 @@ Set `rust-analyzer.linkedProjects` to the absolute path of `Cargo.toml`: The continuous integration pipeline includes comprehensive testing, benchmarking, and publishing: #### Build & Test + 1. **Build Wheels**: Uses `cibuildwheel` for manylinux x86_64 packages 2. **Build Source Distribution**: Creates source distribution for pip fallback 3. **Rust HTTP Server Benchmarking**: Performance testing of router overhead