diff --git a/.github/workflows/pr-test-amd.yml b/.github/workflows/pr-test-amd.yml index a2e8e9988bfd..769775cee53a 100644 --- a/.github/workflows/pr-test-amd.yml +++ b/.github/workflows/pr-test-amd.yml @@ -99,6 +99,19 @@ jobs: sgl_kernel: - "sgl-kernel/**" - ".github/workflows/pr-test-amd.yml" + # Exclude non-ROCm platform configs and code + - "!sgl-kernel/pyproject_cpu.toml" + - "!sgl-kernel/pyproject.toml" + - "!sgl-kernel/pyproject_musa.toml" + - "!sgl-kernel/setup_musa.py" + - "!sgl-kernel/csrc/cpu/**" + # Exclude documentation and non-functional files + - "!sgl-kernel/README.md" + - "!sgl-kernel/LICENSE" + - "!sgl-kernel/THIRDPARTYNOTICES.txt" + - "!sgl-kernel/.clang-format" + - "!sgl-kernel/analyze_whl_kernel_sizes.py" + - "!sgl-kernel/rename_wheels.sh" multimodal_gen: - "python/sglang/multimodal_gen/**" - "python/sglang/cli/**" diff --git a/.github/workflows/pr-test-xeon.yml b/.github/workflows/pr-test-xeon.yml index 021a1308593c..aa093e933131 100644 --- a/.github/workflows/pr-test-xeon.yml +++ b/.github/workflows/pr-test-xeon.yml @@ -58,7 +58,12 @@ jobs: - "python/sglang/!(multimodal_gen)/**" - "python/pyproject_cpu.toml" - "test/**" - - "sgl-kernel/**" + # Only trigger on CPU-specific sgl-kernel changes + - "sgl-kernel/pyproject_cpu.toml" + - "sgl-kernel/csrc/cpu/**" + - "sgl-kernel/python/**" + - "sgl-kernel/include/**" + - "sgl-kernel/tests/**" - ".github/workflows/pr-test-xeon.yml" - "docker/xeon.Dockerfile" diff --git a/.github/workflows/pr-test-xpu.yml b/.github/workflows/pr-test-xpu.yml index 38b89762a75a..b1bc41c00a6e 100644 --- a/.github/workflows/pr-test-xpu.yml +++ b/.github/workflows/pr-test-xpu.yml @@ -58,6 +58,20 @@ jobs: - "python/pyproject_xpu.toml" - "test/**" - "sgl-kernel/**" + # Exclude non-XPU platform configs and code + - "!sgl-kernel/pyproject_cpu.toml" + - "!sgl-kernel/pyproject_rocm.toml" + - "!sgl-kernel/pyproject_musa.toml" + - "!sgl-kernel/setup_rocm.py" + - "!sgl-kernel/setup_musa.py" + - "!sgl-kernel/csrc/cpu/**" + # Exclude documentation and non-functional files + - "!sgl-kernel/README.md" + - "!sgl-kernel/LICENSE" + - "!sgl-kernel/THIRDPARTYNOTICES.txt" + - "!sgl-kernel/.clang-format" + - "!sgl-kernel/analyze_whl_kernel_sizes.py" + - "!sgl-kernel/rename_wheels.sh" - ".github/workflows/pr-test-xpu.yml" - "docker/xpu.Dockerfile" diff --git a/.github/workflows/pr-test.yml b/.github/workflows/pr-test.yml index ca8c6ea9f28b..97c0950fb9f7 100644 --- a/.github/workflows/pr-test.yml +++ b/.github/workflows/pr-test.yml @@ -114,6 +114,20 @@ jobs: - ".github/workflows/pr-test.yml" sgl_kernel: - "sgl-kernel/**" + # Exclude non-CUDA platform configs and code + - "!sgl-kernel/pyproject_cpu.toml" + - "!sgl-kernel/pyproject_rocm.toml" + - "!sgl-kernel/pyproject_musa.toml" + - "!sgl-kernel/setup_rocm.py" + - "!sgl-kernel/setup_musa.py" + - "!sgl-kernel/csrc/cpu/**" + # Exclude documentation and non-functional files + - "!sgl-kernel/README.md" + - "!sgl-kernel/LICENSE" + - "!sgl-kernel/THIRDPARTYNOTICES.txt" + - "!sgl-kernel/.clang-format" + - "!sgl-kernel/analyze_whl_kernel_sizes.py" + - "!sgl-kernel/rename_wheels.sh" jit_kernel: - "python/sglang/jit_kernel/**" - "python/pyproject.toml"