This repository was archived by the owner on Nov 26, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
74 lines (62 loc) · 1.56 KB
/
codeql-analysis.yml
File metadata and controls
74 lines (62 loc) · 1.56 KB
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
68
69
70
71
72
73
74
name: "CodeQL"
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: '27 8 * * 3'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
environment: CI
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'cpp' ]
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: true
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Setup Clang
uses: egor-tensin/setup-clang@v1
with:
version: latest
platform: x64
- name: Setup ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
variant: sccache
key: linux-clang-debug-codeql
max-size: 1000M
- name: Get latest CMake
uses: lukka/get-cmake@latest
- name: Run vcpkg
uses: lukka/run-vcpkg@v10
with:
appendedCacheKey: linux-clang-debug-codeql
- name: Build
run: |
cmake --preset linux-clang-debug
cmake --build --preset linux-clang-debug
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
- name: Gitter
if: always()
uses: juztcode/gitter-github-action@v2
with:
room-id: ${{secrets.GITTER_ROOM_ID}}
token: ${{secrets.GITTER_TOKEN}}
text: ${{github.workflow}} - ${{job.status}}