Skip to content

Commit 1eaac5a

Browse files
committed
CodeQL yml file
1 parent d73ddd9 commit 1eaac5a

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/code-ql.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CodeQL
2+
3+
on:
4+
push:
5+
branches: [dev, master]
6+
pull_request:
7+
branches: [dev]
8+
9+
jobs:
10+
analyze:
11+
runs-on: [ubuntu-latest]
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
# Initializes CodeQL tools and creates a codebase for analysis.
18+
- name: Initialize CodeQL
19+
uses: github/codeql-action/init@v3
20+
with:
21+
languages: ['c-cpp', 'actions']
22+
23+
- name: Build C and C++ code
24+
run: |
25+
cmake -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc
26+
cmake --build build
27+
28+

0 commit comments

Comments
 (0)