Repository navigation
55 lines (47 loc) · 1.46 KB
/
Copy pathcodeql.yml
File metadata and controls
55 lines (47 loc) · 1.46 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
51
52
53
54
55
name: CodeQL
on:
pull_request:
branches: [main]
schedule:
- cron: '0 4 * * 1'
workflow_dispatch:
permissions:
contents: read
security-events: write
concurrency:
group: codeql-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: Analyze C++
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- uses: actions/checkout@v7
with:
submodules: recursive
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
ninja-build pkg-config \
libgl1-mesa-dev libglu1-mesa-dev libegl1-mesa-dev \
libx11-dev libxext-dev libxrandr-dev libxcursor-dev \
libxi-dev libxinerama-dev libxss-dev libxmu-dev libxtst-dev \
libxkbcommon-dev libwayland-dev wayland-protocols \
libasound2-dev libpulse-dev libudev-dev libdbus-1-dev
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: c-cpp
build-mode: manual
# Only engine sources are of interest; the vendored libraries are not
# ours to fix and would bury real findings.
- name: Build
run: |
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug -DSDL_IBUS=OFF
cmake --build build --target Engine
- name: Analyze
uses: github/codeql-action/analyze@v4
with:
category: /language:c-cpp