Skip to content

Commit c16751e

Browse files
authored
add codeql daily ci (#7)
1 parent 20ce7b0 commit c16751e

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.azdo/codeql.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: $(BuildDefinitionName)-$(date:yyMM).$(date:dd)$(rev:rrr)
2+
3+
trigger: none
4+
5+
schedules:
6+
- cron: "0 10 * * 1-5"
7+
displayName: Daily CodeQL Build
8+
branches:
9+
include:
10+
- master
11+
12+
stages:
13+
- stage: Build
14+
displayName: Build ZLib
15+
jobs:
16+
- job: BuildPkg
17+
displayName: Build Package
18+
pool:
19+
name: PS-PowerShell-x64
20+
demands:
21+
- ImageOverride -equals PSMMS2022-OpenSSH-Secure
22+
variables:
23+
Codeql.Enabled: true
24+
Codeql.Cadence: 23 # hours
25+
steps:
26+
- task: CodeQL3000Init@0
27+
displayName: Initialize CodeQL
28+
29+
- pwsh: |
30+
Write-Verbose "Starting the build configuration:Release Platform:x64"
31+
$buildLogPath = Join-Path $repolocation "build\build_x64_Release.log"
32+
& 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\MSBuild.exe' "$(Build.SourcesDirectory)/build/ZLib.sln" /p:Configuration=Release /p:Platform=x64 /m /noconlog /fl /flp:LogFile=$buildLogPath
33+
displayName: Build ZLib
34+
35+
- task: CodeQL3000Finalize@0
36+
displayName: Finalize CodeQL
37+
38+
- pwsh: |
39+
$BuildOutPath = "$(Build.SourcesDirectory)/build/bin"
40+
$BuildOutx64Path = Join-Path -Path $BuildOutPath -ChildPath 'x64/Release'
41+
Get-ChildItem -Path $BuildOutx64Path
42+
displayName: Capture build results

0 commit comments

Comments
 (0)