File tree 1 file changed +17
-11
lines changed
1 file changed +17
-11
lines changed Original file line number Diff line number Diff line change 1
- name : " CodeQL "
1
+ name : Code QL
2
2
3
3
on :
4
4
push :
5
5
branches : [ "master" ]
6
6
pull_request :
7
7
branches : [ "master" ]
8
+ workflow_dispatch :
8
9
9
10
jobs :
10
11
analyze :
11
- name : Analyze
12
+ strategy :
13
+ fail-fast : false
14
+ matrix :
15
+ language : [ 'cpp' ]
16
+ config : ['Release']
17
+ name : Analyze ${{ matrix.language }} in ${{ matrix.config }}
12
18
runs-on : ubuntu-latest
13
19
permissions :
14
20
actions : read
15
21
contents : read
16
22
security-events : write
17
-
18
- strategy :
19
- fail-fast : false
20
- matrix :
21
- language : [ 'cpp' ]
22
-
23
23
steps :
24
24
- name : Checkout repository
25
25
uses : actions/checkout@v4
26
-
27
26
- name : Initialize CodeQL
28
27
uses : github/codeql-action/init@v3
29
28
with :
30
29
languages : ${{ matrix.language }}
31
- - run : bash compile.sh Release
32
-
30
+ - name : Build and test in ${{ matrix.config }}.
31
+ shell : bash
32
+ run : |
33
+ CMAKE_GENERATOR_PLATFORM_ARG=""
34
+ if [ "$RUNNER_OS" == "Windows" ]; then
35
+ CMAKE_GENERATOR_PLATFORM_ARG="-DCMAKE_GENERATOR_PLATFORM=x64"
36
+ fi
37
+ cmake -S. -Bbuild/${{ matrix.config }} -DCMAKE_BUILD_TYPE=${{ matrix.config }} -DBUILD_TESTING=ON -DBUILD_MEMCHECK=ON ${CMAKE_GENERATOR_PLATFORM_ARG}
38
+ cmake --build build/${{ matrix.config }} --config ${{ matrix.config }} --parallel 4 --target gtl_build
33
39
- name : Perform CodeQL Analysis
34
40
uses : github/codeql-action/analyze@v3
You can’t perform that action at this time.
0 commit comments