[重构CI配置并集成代码质量检查工具]: 优化持续集成流程,引入代码静态分析和依赖管理改进 #8
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | name: CodeQL | |
| on: | |
| push: | |
| paths-ignore: | |
| - '.clang*' | |
| - '.gitignore' | |
| - 'LICENSE' | |
| - 'README*' | |
| pull_request: | |
| paths-ignore: | |
| - '.clang*' | |
| - '.gitignore' | |
| - 'LICENSE' | |
| - 'README*' | |
| schedule: | |
| - cron: '0 0 1 * *' | |
| workflow_dispatch: | |
| jobs: | |
| CodeQL: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - uses: ./.github/actions/install-dependencies | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v3 | |
| with: | |
| languages: cpp | |
| - name: Autobuild | |
| uses: github/codeql-action/autobuild@v3 | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@v3 | |