-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (55 loc) · 1.52 KB
/
Copy pathcodeql.yml
File metadata and controls
65 lines (55 loc) · 1.52 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
name: CodeQL
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "23 4 * * 1"
workflow_dispatch:
permissions:
contents: read
security-events: write
env:
LANG: C.UTF-8
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: Analyze C++
runs-on: ubuntu-latest
container: ubuntu:26.04
steps:
- name: Install system dependencies
run: |
apt-get update
apt-get install --yes --no-install-recommends \
ca-certificates \
cmake \
extra-cmake-modules \
g++ \
git \
libpipewire-0.3-dev \
ninja-build \
pkg-config \
qml6-module-org-kde-kirigami \
qml6-module-qtquick-controls \
qt6-base-dev \
qt6-declarative-dev \
qt6-declarative-dev-tools
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Initialize CodeQL
uses: github/codeql-action/init@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v4
with:
languages: c-cpp
build-mode: manual
- name: Build
run: |
cmake -S . -B build -G Ninja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr
cmake --build build
- name: Analyze
uses: github/codeql-action/analyze@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4