-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (59 loc) · 1.72 KB
/
codeql.yml
File metadata and controls
69 lines (59 loc) · 1.72 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: CodeQL
on:
pull_request:
branches:
- master
permissions:
actions: read
contents: read
security-events: write
jobs:
analyze:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: [ 'cpp' ]
steps:
- name: Checkout repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6
- name: Set up GCC 14
uses: egor-tensin/setup-gcc@eaa888eb19115a521fa72b65cd94fe1f25bbcaac # v1
with:
version: 14
platform: x64
- name: Initialize CodeQL
uses: github/codeql-action/init@e12f0178983d466f2f6028f5cc7a6d786fd97f4b # v4
with:
languages: ${{ matrix.language }}
build-mode: manual
- name: Install Qt 6
uses: jurplel/install-qt-action@v4
with:
version: '6.8.*'
target: 'desktop'
install-deps: 'true'
cache: 'true'
modules: 'qtmultimedia'
- name: Install backend deps
run: |
sudo apt-get update
sudo apt-get install -y \
libcxxopts-dev libopencv-dev
- name: Configure (Debug, non-KDE, tests OFF, coverage OFF)
env:
CC: gcc-14
CXX: g++-14
run: |
cmake -S . -B build \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_C_COMPILER=gcc-14 \
-DCMAKE_CXX_COMPILER=g++-14 \
-DKDE=OFF \
-DBUILD_TESTS=OFF \
-DENABLE_COVERAGE=OFF \
-DENABLE_ASAN=OFF
- name: Build
run: cmake --build build --parallel "$(nproc)"
- name: Run CodeQL Analysis
uses: github/codeql-action/analyze@e12f0178983d466f2f6028f5cc7a6d786fd97f4b # v4