-
Notifications
You must be signed in to change notification settings - Fork 204
158 lines (149 loc) · 4.61 KB
/
codeql.yaml
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
name: CodeQL
on:
push:
branches:
- "main"
- "topic/*"
tags:
- "v1_11_*"
pull_request:
branches:
- "main"
- "topic/*"
jobs:
check-msys2:
runs-on: windows-latest
permissions:
security-events: write
packages: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: "recursive"
- uses: msys2/setup-msys2@v2
with:
update: true
msystem: clang64
install: >-
git
mingw-w64-i686-clang
mingw-w64-i686-cmake
mingw-w64-i686-lld
mingw-w64-i686-ninja
mingw-w64-clang-x86_64-adwaita-icon-theme
mingw-w64-clang-x86_64-boost
mingw-w64-clang-x86_64-clang
mingw-w64-clang-x86_64-cmake
mingw-w64-clang-x86_64-gcc-compat
mingw-w64-clang-x86_64-gtkmm3
mingw-w64-clang-x86_64-lld
mingw-w64-clang-x86_64-ninja
mingw-w64-clang-x86_64-openssl
mingw-w64-clang-x86_64-python
mingw-w64-clang-x86_64-python-pip
mingw-w64-clang-x86_64-spdlog
mingw-w64-clang-x86_64-jq
mingw-w64-clang-x86_64-uasm
mingw-w64-clang-x86_64-rust
mingw-w64-clang-x86_64-qt6-base
mingw-w64-clang-x86_64-qt6-svg
mingw-w64-clang-x86_64-qt6-tools
tar
xz
zip
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: c-cpp
build-mode: manual
- name: Build
shell: msys2 {0}
run: |
mkdir _build _deploy
export MINGW_ROOT=/c/msys64
export MSYSTEM=CLANG64
cmake -G "Ninja" -B '${{ github.workspace }}/_build' \
-DCMAKE_TOOLCHAIN_FILE=cmake/toolchains/msys2.cmake \
-DCMAKE_BUILD_TYPE=Debug \
-DWITH_UI=Gtk+3 \
-DWITH_CRASHPAD=OFF \
-DWITH_AUTO_UPDATE=ON \
-DWITH_TRACING=ON
cmake --build '${{github.workspace}}/_build' --config Debug
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:c-cpp"
build-cmake:
runs-on: ubuntu-latest
permissions:
security-events: write
packages: read
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: c-cpp
build-mode: manual
- name: Build
run: |
export DEBIAN_FRONTEND=noninteractive
sudo apt-mark hold grub-efi-amd64-signed
sudo apt update -y
sudo apt dist-upgrade -y
sudo apt install -y libunwind-dev
sudo apt install -y \
cmake \
gettext \
gobject-introspection \
gsettings-desktop-schemas-dev \
libayatana-indicator3-dev \
libboost-chrono-dev \
libboost-context-dev \
libboost-coroutine-dev \
libboost-date-time-dev \
libboost-dev \
libboost-filesystem-dev \
libboost-log-dev \
libboost-program-options-dev \
libboost-regex-dev \
libboost-system-dev \
libboost-test-dev \
libboost-thread-dev \
libdbusmenu-glib-dev \
libdbusmenu-gtk3-dev \
libgirepository1.0-dev \
libgnome-panel-dev \
libgstreamer1.0-dev \
libgtk-3-dev \
libgtkmm-3.0-dev \
libindicator3-dev \
libmate-panel-applet-dev \
libpulse-dev \
libspdlog-dev \
libxfce4panel-2.0-dev \
libxi-dev \
libxmu-dev \
libxss-dev \
libxtst-dev \
ninja-build
cmake -G Ninja -B '${{ github.workspace }}/_build' -H. \
-DCMAKE_INSTALL_PREFIX=_deploy \
-DWITH_TRACING=ON \
-DWITH_UI=Gtk+3 \
-DWITH_TESTS=ON \
-DCODE_COVERAGE=OFF \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
cmake --build '${{github.workspace}}/_build' --config Debug
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:c-cpp"