-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdevice_local.yml
87 lines (86 loc) · 3.04 KB
/
device_local.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
trigger:
batch: true
branches:
include:
- main
paths:
exclude:
- 'tools/*'
- CODE_OF_CONDUCT.md
- CONTRIBUTING.md
- ISSUES.md
- LICENSE
- NOTICE
- README.md
- SECURITY.md
stages:
- stage: adapter
displayName: 'adapter'
jobs:
- job: build
displayName: 'Build SEAL-Embedded test image'
pool:
vmImage: 'windows-latest'
steps:
- task: CMake@1
displayName: 'CMake SEAL-Embedded Adapter'
inputs:
workingDirectory: '$(Build.SourcesDirectory)/build-adapter'
cmakeArgs: '-DCMAKE_BUILD_TYPE=Release ../adapter'
- task: MSBuild@1
displayName: 'Build SEAL-Embedded Adapter'
inputs:
solution: '$(Build.SourcesDirectory)/build-adapter/seal_embedded_adapter.sln'
msbuildArchitecture: 'x64'
platform: 'x64'
configuration: 'Release'
- task: CmdLine@2
displayName: 'Run SEAL-Embedded Adapter'
inputs:
script: |
echo 1 >> test.txt
$(Build.SourcesDirectory)/build-adapter/bin/Release/se_adapter.exe < test.txt
# - task: CMake@1
# displayName: 'CMake SEAL-Embedded'
# inputs:
# workingDirectory: '$(Build.SourcesDirectory)/build-device'
# cmakeArgs: '-DCMAKE_BUILD_TYPE=Release -DSE_BUILD_LOCAL=ON -DSE_BUILD_M4=OFF -DSE_M4_IS_SPHERE=OFF -DSE_BUILD_TYPE="Tests" ../device'
# - task: MSBuild@1
# displayName: 'Build SEAL-Embedded'
# inputs:
# solution: '$(Build.SourcesDirectory)/build-device/seal_embedded.sln'
# msbuildArchitecture: 'x64'
# platform: 'x64'
# configuration: 'Release'
- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@2
displayName: 'Run CredScan'
inputs:
toolMajorVersion: 'V2'
outputFormat: sarif
debugMode: false
- task: securedevelopmentteam.vss-secure-development-tools.build-task-roslynanalyzers.RoslynAnalyzers@2
displayName: 'Run Roslyn Analyzers'
- task: Semmle@0
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
inputs:
sourceCodeDirectory: '$(Build.SourcesDirectory)'
language: 'cpp'
includeNodeModules: true
querySuite: 'Recommended'
timeout: '1800'
ram: '16384'
addProjectDirToScanningExclusionList: true
buildCommands: '"%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsMSBuildCmd.bat" && msbuild $(Build.SourcesDirectory)/build-adapter/seal_embedded_adapter.sln'
cleanupBuildCommands: '"%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsMSBuildCmd.bat" && msbuild $(Build.SourcesDirectory)/build-adapter/seal_embedded_adapter.sln /t:Clean'
- task: ComponentGovernanceComponentDetection@0
inputs:
scanType: 'Register'
verbosity: 'Verbose'
alertWarningLevel: 'High'
- task: PublishSecurityAnalysisLogs@2
inputs:
ArtifactName: 'CodeAnalysisLogs'
ArtifactType: 'Container'
AllTools: true
ToolLogsNotFoundAction: 'Standard'