File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed
Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " CodeQL"
2+
3+ on :
4+ push :
5+ branches : [ 'main' ]
6+ pull_request :
7+ # The branches below must be a subset of the branches above
8+ branches : [ 'main' ]
9+ schedule :
10+ - cron : ' 49 20 * * 4'
11+
12+ env :
13+ BUILD_TYPE : RelWithDebInfo
14+
15+ jobs :
16+ analyze :
17+ name : Analyze
18+ runs-on : ubuntu-latest
19+ container : mrts/qt-cmake-gtest-valgrind-ubuntu:v1.8
20+ permissions :
21+ actions : read
22+ contents : read
23+ security-events : write
24+
25+ strategy :
26+ fail-fast : false
27+ matrix :
28+ language : [ 'cpp' ]
29+
30+ steps :
31+ - name : Checkout repository
32+ uses : actions/checkout@v3
33+ with :
34+ submodules : recursive
35+
36+ - name : Initialize CodeQL
37+ uses : github/codeql-action/init@v2
38+ with :
39+ languages : ${{ matrix.language }}
40+
41+ - name : Create build directory
42+ run : mkdir build
43+
44+ - name : Configure CMake
45+ working-directory : ${{github.workspace}}/build
46+ run : cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
47+
48+ - name : Build
49+ working-directory : ${{github.workspace}}/build
50+ run : cmake --build . --config $BUILD_TYPE
51+
52+ - name : Perform CodeQL Analysis
53+ uses : github/codeql-action/analyze@v2
54+ with :
55+ category : " /language:${{matrix.language}}"
You can’t perform that action at this time.
0 commit comments