forked from DFIR-ORC/dfir-orc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines-template.yml
41 lines (37 loc) · 1.06 KB
/
azure-pipelines-template.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
parameters:
arch: ''
jobs:
- job: vs2019_${{ parameters.arch }}
pool:
vmImage: 'windows-2019'
steps:
- checkout: self
clean: true
submodules: true
- task: NuGetAuthenticate@0
- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
. $(Build.SourcesDirectory)/tools/ci/build.ps1
Build-ORC `
-Source $(Build.SourcesDirectory) `
-Output $(Build.SourcesDirectory)/artifacts `
-Toolchain vs2019 `
-Architecture ${{ parameters.arch }} `
-Configuration Debug,MinSizeRel
- task: VSTest@2
inputs:
testSelector: 'testAssemblies'
testAssemblyVer2: '**/OrcLibTest.dll'
platform: "${{ parameters.arch }}"
configuration: "MinSizeRel"
- task: CopyFiles@2
inputs:
sourceFolder: '$(Build.SourcesDirectory)/artifacts'
contents: '**'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)
artifactName: dfir-orc_${{ parameters.arch }}