-
Notifications
You must be signed in to change notification settings - Fork 44
84 lines (75 loc) · 2.1 KB
/
Copy pathcodeql.yml
File metadata and controls
84 lines (75 loc) · 2.1 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: "CodeQL"
on:
push:
branches: ["master"]
schedule:
- cron: "39 10 * * 0"
jobs:
analyze:
name: Analyze
runs-on: ubuntu-24.04
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: ["cpp"]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
build-essential \
cmake \
libavcodec-dev \
libavdevice-dev \
libavformat-dev \
libavutil-dev \
libconfig-dev \
libexif-dev \
libgl-dev \
libopenal-dev \
libopus-dev \
libqrencode-dev \
libsodium-dev \
libsqlcipher-dev \
libswscale-dev \
libunwind-dev \
libv4l-dev \
libvpx-dev \
libxss-dev \
ninja-build \
pkg-config \
qt6-base-dev \
qt6-l10n-tools \
qt6-svg-dev \
qt6-tools-dev \
qt6-tools-dev-tools
- name: Build toxcore
run: |
git clone --depth=1 --recursive https://github.com/TokTok/c-toxcore.git toxcore
cmake -B toxcore/_build -S toxcore -GNinja -DBOOTSTRAP_DAEMON=OFF
cmake --build toxcore/_build
sudo cmake --install toxcore/_build
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
queries: security-and-quality
- name: Build
run: |
cmake -GNinja -B _build -S . \
-DUPDATE_CHECK=OFF \
-DSPELL_CHECK=OFF \
-DSTRICT_OPTIONS=ON
cmake --build _build --parallel $(nproc)
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"