-
-
Notifications
You must be signed in to change notification settings - Fork 0
93 lines (80 loc) · 2.81 KB
/
Copy pathcodeql.yml
File metadata and controls
93 lines (80 loc) · 2.81 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
name: "CodeQL"
on:
push:
branches:
- main
paths: [include/**, lib/**, src/**]
pull_request:
# The branches below must be a subset of the branches above
branches:
- main
paths: [include/**, lib/**, src/**]
schedule:
- cron: "0 8 * * 0"
concurrency:
group: CodeQL
cancel-in-progress: true
jobs:
CodeQL-Build:
name: Analyze
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners
# Consider using larger runners for possible analysis time improvements.
runs-on: windows-latest
permissions:
# required for all workflows
security-events: write
# only required for workflows in private repositories
actions: read
contents: read
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
submodules: true
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
# Override language selection by uncommenting this and choosing your languages
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
# If this step fails, then you should remove it and run the build manually (see below).
- name: Cache LLVM and Clang
id: cache-llvm
uses: actions/cache@v3
with:
path: |
C:/Program Files/LLVM
./llvm
key: llvm-16.0.0
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v1
with:
version: "16.0.0"
cached: ${{ steps.cache-llvm.outputs.cache-hit }}
- name: Get CMake
uses: lukka/get-cmake@latest
- name: Run vcpkg
uses: lukka/run-vcpkg@v10
with:
vcpkgDirectory: "${{ github.workspace }}/external/vcpkg"
vcpkgJsonGlob: "${{ github.workspace }}/vcpkg.json"
- name: Run CMake
uses: lukka/run-cmake@v10
with:
configurePreset: "configure-release-with-debug-info"
buildPreset: "build-release-with-debug-info"
buildPresetAdditionalArgs: '[`--target ColdEngine`]'
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2