Add clang-format check to sgl-kernel ci (#3012)

This commit is contained in:
Ke Bao
2025-01-20 23:22:19 +08:00
committed by GitHub
parent e94fb7cb10
commit 41a0ccd4f1

View File

@@ -16,6 +16,20 @@ concurrency:
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Check clang-format
uses: DoozyX/clang-format-lint-action@v0.18.1
with:
source: sgl-kernel
extensions: h,c,cpp,hpp,cu,cuh,cc
clangFormatVersion: 16
style: file
unit-test:
if: github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request'
runs-on: 1-gpu-runner