Skip to content

Commit 3541fc2

Browse files
authored
add daily ci (#27)
1 parent 8cf7003 commit 3541fc2

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.azdo/codeql.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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 LibreSSL
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: 1 # hour (for testing, normally will run daily)
25+
skipComponentGovernanceDetection: true # not needed for CodeQL run
26+
steps:
27+
# - task: CodeQL3000Init@0
28+
# displayName: Initialize CodeQL
29+
30+
- pwsh: |
31+
Write-Verbose "Starting the build configuration:Release Platform:x64"
32+
$destination = "$(Build.SourcesDirectory)\bin\x64\Release"
33+
CreateDirectory -directory $destination
34+
$buildPath = "$(Build.SourcesDirectory)\build_x64"
35+
CreateDirectory -directory $buildPath
36+
Set-location $buildPath
37+
cmake -DBUILD_SHARED_LIBS=ON -G"Visual Studio 17 2022" -A"x64" ..
38+
$buildLogPath = "$(Build.SourcesDirectory)\build\build_x64_Release.log"
39+
& 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\MSBuild.exe' LibreSSL.sln /p:Configuration=Release /m /noconlog /fl /flp:LogFile=build.log
40+
displayName: Build LibreSSL
41+
42+
# - task: CodeQL3000Finalize@0
43+
# displayName: Finalize CodeQL
44+
45+
- pwsh: |
46+
$BuildOutx64Path = "$(Build.SourcesDirectory)\build_x64"
47+
Get-ChildItem -Path $BuildOutx64Path
48+
displayName: Capture build results

0 commit comments

Comments
 (0)