Skip to content

ci: 将 CI 工作流调整为仅执行 CPU-safe 的格式检查 #9

ci: 将 CI 工作流调整为仅执行 CPU-safe 的格式检查

ci: 将 CI 工作流调整为仅执行 CPU-safe 的格式检查 #9

Workflow file for this run

name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
format-check:
name: Format Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check C/C++/CUDA formatting
uses: jidicula/clang-format-action@v4.13.0
with:
clang-format-version: '17'
check-path: '.'
exclude-regex: '(^|/)(build|third_party|external|vendor|\.git)(/|$)'
fallback-style: 'LLVM'