| 1 |
name: "CodeQL" |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: [ "master", "dev" ] |
| 6 |
pull_request: |
| 7 |
branches: [ "master", "dev" ] |
| 8 |
|
| 9 |
jobs: |
| 10 |
analyze: |
| 11 |
name: Analyze |
| 12 |
runs-on: ubuntu-latest |
| 13 |
permissions: |
| 14 |
actions: read |
| 15 |
contents: read |
| 16 |
security-events: write |
| 17 |
|
| 18 |
strategy: |
| 19 |
fail-fast: false |
| 20 |
matrix: |
| 21 |
language: [ cpp ] |
| 22 |
|
| 23 |
steps: |
| 24 |
- name: Checkout |
| 25 |
uses: actions/checkout@v3 |
| 26 |
|
| 27 |
- name: Configure |
| 28 |
run: cmake -DENABLE_HEAVY_LOGGING=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS=-fpermissive -DENABLE_BONDING=1 . |
| 29 |
|
| 30 |
- name: Initialize CodeQL |
| 31 |
uses: github/codeql-action/init@v2 |
| 32 |
with: |
| 33 |
languages: ${{ matrix.language }} |
| 34 |
queries: +security-and-quality |
| 35 |
|
| 36 |
- name: Build |
| 37 |
run: | |
| 38 |
make |
| 39 |
|
| 40 |
- name: Perform CodeQL Analysis |
| 41 |
uses: github/codeql-action/analyze@v2 |
| 42 |
with: |
| 43 |
category: "/language:${{ matrix.language }}" |