Add clang-format check to sgl-kernel ci (#3012)
This commit is contained in:
14
.github/workflows/pr-test-sgl-kernel.yml
vendored
14
.github/workflows/pr-test-sgl-kernel.yml
vendored
@@ -16,6 +16,20 @@ concurrency:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
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:
|
unit-test:
|
||||||
if: github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request'
|
if: github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request'
|
||||||
runs-on: 1-gpu-runner
|
runs-on: 1-gpu-runner
|
||||||
|
|||||||
Reference in New Issue
Block a user