Skip to content

Commit 6e0ce57

Browse files
committed
Create codeql.yml
1 parent f26dba3 commit 6e0ce57

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [ "master" ]
9+
schedule:
10+
- cron: '18 7 * * 1'
11+
12+
jobs:
13+
analyze:
14+
name: Analyze
15+
runs-on: 'ubuntu-latest'
16+
timeout-minutes: 360
17+
permissions:
18+
actions: read
19+
contents: read
20+
security-events: write
21+
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
language: [ 'cpp' ]
26+
27+
steps:
28+
- name: Checkout repository
29+
uses: actions/checkout@v3
30+
with:
31+
submodules: true
32+
33+
- name: Install Qt
34+
uses: jurplel/install-qt-action@v3
35+
with:
36+
version: "6.5"
37+
modules: "qt5compat"
38+
39+
- name: Setup
40+
run: |
41+
sudo apt-get -y update
42+
sudo apt-get install libxkbcommon-dev libxkbcommon-x11-0 fuse libxcb-cursor-dev gdb build-essential
43+
44+
# Initializes the CodeQL tools for scanning.
45+
- name: Initialize CodeQL
46+
uses: github/codeql-action/init@v3
47+
with:
48+
languages: ${{ matrix.language }}
49+
50+
- name: Build
51+
run: |
52+
mkdir build
53+
cd build
54+
qmake "../src/NotepadNext.pro" "DISTRIBUTION=AppImage"
55+
make -j$(nproc)
56+
57+
- name: Perform CodeQL Analysis
58+
uses: github/codeql-action/analyze@v2
59+
with:
60+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)