Debian Codegraph @

.github/workflows/codechecker.yaml

raw
1 name: CodeChecker
2
3 on:
4 schedule:
5 - cron: '0 0 * * *'
6 workflow_dispatch:
7
8 jobs:
9 check:
10 runs-on: ubuntu-latest
11 steps:
12 - uses: actions/checkout@v4
13
14 - name: Install libevent
15 run: sudo apt install libevent-dev libsystemd-dev
16
17 - name: Create Build Environment
18 run: cmake -E make_directory ${{github.workspace}}/build
19
20 - name: Configure CMake
21 shell: bash
22 working-directory: ${{github.workspace}}/build
23 run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
24
25 - name: Build
26 working-directory: ${{github.workspace}}/build
27 shell: bash
28 run: cmake --build . --config Debug
29
30 # Run the analysis
31 - uses: whisperity/codechecker-analysis-action@v1
32 id: codechecker
33 with:
34 logfile: ${{ github.workspace }}/build/compile_commands.json
35
36 # Upload the results to the CI.
37 - uses: actions/upload-pages-artifact@v3
38 with:
39 path: ${{ steps.codechecker.outputs.result-html-dir }}
40
41 deploy:
42 needs: check
43 permissions:
44 pages: write
45 id-token: write
46
47 environment:
48 name: github-pages
49 url: ${{ steps.deployment.outputs.page_url }}
50
51 runs-on: ubuntu-latest
52 steps:
53 - name: Deploy to GitHub Pages
54 id: deployment
55 uses: actions/deploy-pages@v4