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+ # https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
2+
3+ name : " CodeQL"
4+
5+ on :
6+ push :
7+ branches : [master]
8+ pull_request :
9+ branches : [master]
10+ schedule :
11+ - cron : ' 0 13 * * 2'
12+
13+ jobs :
14+ analyze :
15+ name : Analyze
16+ runs-on : ubuntu-20.04
17+
18+ strategy :
19+ fail-fast : false
20+ matrix :
21+ language : ['cpp']
22+
23+ steps :
24+ - name : Checkout repository
25+ uses : actions/checkout@v2
26+
27+ - name : Install package dependencies
28+ run : |
29+ sudo apt-get update -y
30+ sudo apt-get install -y cmake pkg-config
31+
32+ - name : Prepare
33+ run : |
34+ mkdir "$HOME/work/bear_build"
35+ echo "BUILD_DIR=$HOME/work/bear_build" >> $GITHUB_ENV
36+
37+ # Initializes the CodeQL tools for scanning.
38+ - name : Initialize CodeQL
39+ uses : github/codeql-action/init@v1
40+ with :
41+ languages : ${{ matrix.language }}
42+ # If you wish to specify custom queries, you can do so here or in a config file.
43+ # By default, queries listed here will override any specified in a config file.
44+ # Prefix the list here with "+" to use these queries and those in the config file.
45+ # queries: ./path/to/local/query, your-org/your-repo/queries@main
46+
47+ - name : Build
48+ env :
49+ CTEST_OUTPUT_ON_FAILURE : 1
50+ run : |
51+ cmake -B "$BUILD_DIR" -S "$GITHUB_WORKSPACE" -DENABLE_FUNC_TESTS=OFF
52+ cmake --build "$BUILD_DIR" --parallel 4
53+
54+ - name : Perform CodeQL Analysis
55+ uses : github/codeql-action/analyze@v1
You can’t perform that action at this time.
0 commit comments