| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
name: "CodeQL" |
| 13 |
on: |
| 14 |
push: |
| 15 |
pull_request: |
| 16 |
schedule: |
| 17 |
- cron: '0 0 * * *' |
| 18 |
|
| 19 |
permissions: |
| 20 |
contents: read |
| 21 |
|
| 22 |
jobs: |
| 23 |
analyze: |
| 24 |
name: Analyze |
| 25 |
runs-on: ubuntu-22.04 |
| 26 |
permissions: |
| 27 |
actions: read |
| 28 |
contents: read |
| 29 |
security-events: write |
| 30 |
|
| 31 |
strategy: |
| 32 |
fail-fast: false |
| 33 |
matrix: |
| 34 |
language: ["cpp"] |
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
concurrency: |
| 39 |
group: ${{ github.workflow }}-${{ github.ref }} |
| 40 |
cancel-in-progress: true |
| 41 |
|
| 42 |
steps: |
| 43 |
- name: Harden Runner |
| 44 |
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 |
| 45 |
with: |
| 46 |
egress-policy: audit |
| 47 |
|
| 48 |
- name: Checkout repository |
| 49 |
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 |
| 50 |
|
| 51 |
|
| 52 |
- name: Initialize CodeQL |
| 53 |
uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e |
| 54 |
with: |
| 55 |
languages: ${{ matrix.language }} |
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
- name: Setup mold |
| 61 |
uses: rui314/setup-mold@9c9c13bf4c3f1adef0cc596abc155580bcb04444 |
| 62 |
|
| 63 |
- name: Build |
| 64 |
run: cmake -B build -DDPP_NO_VCPKG=ON -DAVX_TYPE=AVX0 -DCMAKE_BUILD_TYPE=Release && cmake --build build -j4 |
| 65 |
|
| 66 |
- name: Perform CodeQL Analysis |
| 67 |
uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e |
| 68 |
with: |
| 69 |
category: "/language:${{matrix.language}}" |