-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (58 loc) · 1.41 KB
/
codeql.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: "codeql"
on:
pull_request:
push:
branches:
- main
- develop
schedule:
- cron: '38 0 * * 5'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-22.04
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
languages: [ 'cpp' ]
compiler:
- gcc-12
CMAKE_BUILD_TYPE:
- Debug
CMAKE_GENERATOR:
- "Ninja Multi-Config"
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup Cache
uses: ./.github/actions/setup_cache
with:
compiler: ${{ matrix.compiler }}
CMAKE_BUILD_TYPE: ${{ matrix.CMAKE_BUILD_TYPE }}
CMAKE_GENERATOR: ${{ matrix.CMAKE_GENERATOR }}
- name: Setup Cpp
id: setup_cpp
uses: aminya/setup-cpp@v1
with:
compiler: ${{ matrix.compiler }}
vcvarsall: ${{ contains(matrix.os, 'windows' )}}
ccache: true
cmake: true
ninja: true
task: true
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.languages }}
- name: Build
run: task build
env:
CMAKE_BUILD_TYPE: ${{ matrix.CMAKE_BUILD_TYPE }}
CMAKE_GENERATOR: ${{ matrix.CMAKE_GENERATOR }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2