Skip to content

Commit 1ac80ab

Browse files
committed
Add CodeQL nightly job
1 parent 7872904 commit 1ac80ab

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push: # REMOVE
5+
pull_request: # REMOVE
6+
schedule:
7+
- cron: '0 0 * * *'
8+
9+
jobs:
10+
analyze:
11+
name: Analyze
12+
runs-on: ubuntu-latest
13+
permissions:
14+
actions: read
15+
contents: read
16+
security-events: write
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
language:
21+
- cpp
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v4
25+
26+
- name: Initialize CodeQL
27+
uses: github/codeql-action/init@v2
28+
with:
29+
languages: ${{ matrix.language }}
30+
- name: CMake configure
31+
run: >
32+
cmake -S . -B build
33+
-D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
34+
-G Ninja -D USE_SEQ=ON -D USE_MPI=ON -D USE_OMP=ON -D USE_TBB=ON -D USE_STL=ON
35+
-D USE_FUNC_TESTS=ON -D USE_PERF_TESTS=ON
36+
-D CMAKE_BUILD_TYPE=RELEASE
37+
env:
38+
CC: gcc-14
39+
CXX: g++-14
40+
- name: Build project
41+
run: |
42+
cmake --build build --parallel
43+
env:
44+
CC: gcc-14
45+
CXX: g++-14
46+
- name: Perform CodeQL Analysis
47+
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)