-
Notifications
You must be signed in to change notification settings - Fork 104
50 lines (39 loc) · 1.16 KB
/
codeql-analysis.yml
File metadata and controls
50 lines (39 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: CodeQL
on:
push:
pull_request:
permissions:
contents: read
security-events: write
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
# Match .github/workflows/build.yml (plain Release; no LSan — avoids sanitizer/CodeQL interaction)
BUILD_TYPE: Release
jobs:
analyze:
name: Analyze (cpp)
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: cpp
build-mode: manual
config: |
paths-ignore:
- libCacheSim-node
- name: Install build dependencies
run: bash scripts/install_dependency.sh
- name: Configure CMake
run: cmake -G Ninja -B "${{ github.workspace }}/build" -DCMAKE_BUILD_TYPE="${{ env.BUILD_TYPE }}"
- name: Build
run: ninja -C "${{ github.workspace }}/build"
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:cpp"