### 下线 hosted runner - .gitea/workflows、.github/workflows 归档到 docs/ci-templates/(仅自备 runner 可选启用,不作为门禁);活跃 workflow 目录移除; - 新增 tools/vde_local_check.py:--quick(构建+快速 ctest)、--full(全量 ctest)、--module、--wp-check、--build-dir/--no-configure/--jobs/--timeout; 日志/summary 落 build-local-check/<timestamp>/;实测 quick 168/168、full 7475/7475、wp-check PASS; - testing/reference 76/cross-platform 文档改为本地验证 + verifier 门禁; ### 拉取式任务计划 - 根 NEXT_STEPS.md:10 分钟上手/优先队列/T1–T8 下一步目标表/回报约定; - docs/planning/team-briefs/T1..T8.md(使命/边界/下一步/验证/交接); - WP 工具新增 --next/--team-plan/--export-all,非法 --status RC=2;WP-P4-19(1.0.81,Delivered),统计 41=29+12; - issue/PR/流程/多团队文档验证证据改为 local check + verifier; ### 工程 - 版本 1.0.81;全量构建 0 error(353 targets);全量 ctest 7570 注册、7475/7475 PASS(0 failed,25 skipped,221.94s)。
93 lines
2.7 KiB
YAML
93 lines
2.7 KiB
YAML
name: Static Analysis
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- 'include/**'
|
|
- 'src/**'
|
|
- 'tests/**'
|
|
- '.clang-tidy'
|
|
pull_request:
|
|
branches: [main]
|
|
paths:
|
|
- 'include/**'
|
|
- 'src/**'
|
|
- 'tests/**'
|
|
- '.clang-tidy'
|
|
schedule:
|
|
- cron: '0 3 * * 1' # 每周一凌晨3点全量扫描
|
|
workflow_dispatch: # 手动触发
|
|
|
|
jobs:
|
|
clang-tidy:
|
|
name: clang-tidy scan (GCC 11.4)
|
|
runs-on: ubuntu-22.04
|
|
container:
|
|
image: vde-builder:latest
|
|
options: --cpus=2 --memory=8g
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 1
|
|
|
|
- name: Install clang-tidy
|
|
run: |
|
|
apt-get update -qq
|
|
apt-get install -y -qq clang-tidy-15
|
|
|
|
- name: Generate compile_commands.json
|
|
run: |
|
|
cmake -B build_analysis \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
|
-DBUILD_TESTS=ON \
|
|
-DBUILD_EXAMPLES=OFF \
|
|
-DBUILD_BENCHMARKS=OFF \
|
|
-DVDE_BUILD_PYTHON=OFF \
|
|
-DVDE_USE_OPENMP=ON
|
|
cmake --build build_analysis -j2 --target vde_foundation vde_core vde_curves vde_mesh vde_spatial vde_boolean vde_collision vde_brep vde_sdf vde_sketch vde_capi
|
|
|
|
- name: Run clang-tidy
|
|
run: |
|
|
run-clang-tidy-15 \
|
|
-p build_analysis \
|
|
-j2 \
|
|
-header-filter='include/vde/.*\.h$' \
|
|
2>&1 | tee clang-tidy-report.txt
|
|
continue-on-error: true
|
|
|
|
- name: Summarize results
|
|
if: always()
|
|
run: |
|
|
echo "## clang-tidy Results" >> $GITHUB_STEP_SUMMARY
|
|
echo '```' >> $GITHUB_STEP_SUMMARY
|
|
WARNINGS=$(grep -c 'warning:' clang-tidy-report.txt || echo 0)
|
|
ERRORS=$(grep -c 'error:' clang-tidy-report.txt || echo 0)
|
|
echo "Total warnings: $WARNINGS" >> $GITHUB_STEP_SUMMARY
|
|
echo "Total errors: $ERRORS" >> $GITHUB_STEP_SUMMARY
|
|
echo '```' >> $GITHUB_STEP_SUMMARY
|
|
if [ "$ERRORS" -gt 0 ]; then
|
|
echo "⚠️ Found $ERRORS clang-tidy errors" >> $GITHUB_STEP_SUMMARY
|
|
fi
|
|
|
|
- name: Upload clang-tidy report
|
|
if: always()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: clang-tidy-report
|
|
path: clang-tidy-report.txt
|
|
retention-days: 30
|
|
if-no-files-found: ignore
|
|
|
|
- name: Upload compile_commands.json
|
|
if: always()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: compile-commands
|
|
path: build_analysis/compile_commands.json
|
|
retention-days: 7
|
|
if-no-files-found: ignore
|