File tree 1 file changed +14
-5
lines changed
1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change 1
1
name : codeql
2
-
3
2
on :
4
3
push :
5
4
pull_request :
6
5
schedule :
7
6
- cron : ' 0 5 * * 3'
8
-
9
7
jobs :
10
8
codeql :
11
9
runs-on : ubuntu-latest
21
19
with :
22
20
languages : cpp
23
21
queries : +security-and-quality
24
- - name : Build
22
+ - name : Install doctest
25
23
shell : bash
26
- run : script/ci.sh run_build
24
+ run : |
25
+ cd "${{ github.workspace }}"
26
+ git clone --depth=1 --branch=v2.4.11 https://github.com/doctest/doctest
27
+ cd doctest && mkdir -p build && cd build
28
+ cmake .. -DDOCTEST_WITH_TESTS=OFF -DDOCTEST_WITH_MAIN_IN_STATIC_LIB=OFF -DCMAKE_INSTALL_PREFIX="$HOME/.local"
29
+ make -j "$(nproc)" install
30
+ - name : Configure Project (for CodeQL)
31
+ shell : bash
32
+ run : cmake -S . -B codeql_build -D CMAKE_BUILD_TYPE=Release -D CMAKE_PREFIX_PATH="$HOME/.local"
33
+ - name : Build Project (for CodeQL)
34
+ shell : bash
35
+ run : cmake --build codeql_build -j "$(nproc)"
27
36
- name : CodeQL Analysis
28
- uses : github/codeql-action/analyze@v3
37
+ uses : github/codeql-action/analyze@v3
You can’t perform that action at this time.
0 commit comments