Debian Codegraph @

.github/workflows/clang_scan.yml

raw
1 # This is a basic workflow to help you get started with Actions
2
3 name: clang_scan
4
5 # Controls when the action will run.
6 on:
7 # Triggers the workflow on push or pull request events but only for the master branch
8 push:
9 branches: [ master ]
10 pull_request:
11 branches: [ master ]
12
13 # Allows you to run this workflow manually from the Actions tab
14 workflow_dispatch:
15
16 # A workflow run is made up of one or more jobs that can run sequentially or in parallel
17 permissions:
18 contents: read
19
20 jobs:
21 # This workflow contains a single job called "build"
22 build:
23 # The type of runner that the job will run on
24 runs-on: ubuntu-20.04
25 if: ${{ github.repository == 'intel/pcm' }}
26
27 # Steps represent a sequence of tasks that will be executed as part of the job
28 steps:
29 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
30 - name: Harden Runner
31 uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
32 with:
33 egress-policy: audit
34
35 - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
36 with:
37 submodules: recursive
38
39 # Runs a set of commands using the runners shell
40 - name: preparation
41 run: |
42 sudo apt-get update -qq
43 sudo apt-get install -qq -y make clang clang-tools perl g++ cmake
44 - name: cmake
45 run: |
46 rm -rf ${{ github.workspace }}/build
47 scan-build cmake -B ${{ github.workspace }}/build
48 - name: scan-build
49 run: |
50 cd ${{ github.workspace }}/build
51 scan-build --exclude src/simdjson --status-bugs make -j