Repository navigation
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
123 lines (104 loc) · 2.95 KB
/
Copy pathazure-pipelines.yml
File metadata and controls
123 lines (104 loc) · 2.95 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# Commit triggers
trigger:
- master
# PR triggers
pr:
branches:
include:
- master
- 'feature/*'
paths:
include:
- azure-pipelines.yml
- templates/*
- src/*
- schemas/JSON/manifests/*
pool:
vmImage: 'windows-2025-vs2026'
variables:
solution: 'src\AppInstallerCLI.sln'
nugetConfig: 'src\nuget.config'
EnableDetectorVcpkg: true
# Do not set the build version for a PR build.
jobs:
- job: 'GetReleaseTag'
condition: not(eq(variables['Build.Reason'], 'PullRequest'))
variables:
runCodesignValidationInjection: ${{ false }}
skipComponentGovernanceDetection: ${{ true }}
steps:
- task: PowerShell@2
name: 'GetTag'
displayName: Get Release Tag
inputs:
filePath: 'src\binver\Update-BinVer.ps1'
arguments: '-OutVar'
workingDirectory: 'src'
- template: templates/jobs-build.yml
parameters:
# Use custom agent with additional resources.
pool:
name: 1es-pool-winget
- template: templates/jobs-test.yml
- template: templates/jobs-powershell-module.yml
- job: 'Fuzzing'
timeoutInMinutes: 60
condition: not(eq(variables['Build.Reason'], 'PullRequest'))
# Use custom agent with additional resources.
pool:
name: 1es-pool-winget
strategy:
matrix:
x64:
buildConfiguration: 'Fuzzing'
buildPlatform: 'x64'
variables:
buildOutDir: $(Build.SourcesDirectory)\src\$(buildPlatform)\$(buildConfiguration)
artifactsDir: $(Build.ArtifactStagingDirectory)\$(buildPlatform)
steps:
- task: NuGetToolInstaller@1
displayName: Install Nuget
- task: NuGetCommand@2
displayName: Restore Solution
inputs:
restoreSolution: '$(solution)'
feedsToUse: 'config'
nugetConfigPath: '$(nugetConfig)'
- task: CmdLine@2
displayName: Enable Vcpkg Install
inputs:
script: |
$(VCPKG_INSTALLATION_ROOT)\vcpkg.exe integrate install
workingDirectory: '$(VCPKG_INSTALLATION_ROOT)'
- task: VSBuild@1
displayName: Build Fuzzing Artifacts
inputs:
platform: '$(buildPlatform)'
solution: '$(solution)'
configuration: '$(buildConfiguration)'
msbuildArgs: '/bl:$(artifactsDir)\msbuild.binlog'
maximumCpuCount: true
- task: CopyFiles@2
displayName: Copy vcpkg logs
inputs:
SourceFolder: $(VCPKG_INSTALLATION_ROOT)\buildtrees
Contents: '**\*.log'
TargetFolder: '$(artifactsDir)\vcpkgLogs'
condition: succeededOrFailed()
- task: CopyFiles@2
displayName: Copy Fuzzing Artifacts for Publishing
inputs:
SourceFolder: '$(buildOutDir)\WinGetYamlFuzzing'
Contents: '**'
TargetFolder: '$(artifactsDir)'
- task: PublishPipelineArtifact@1
displayName: Publish Fuzzing Artifacts
inputs:
targetPath: '$(artifactsDir)'
condition: succeededOrFailed()
- task: onefuzz-task@0
inputs:
onefuzzOSes: 'Windows'
env:
onefuzzDropDirectory: '$(buildOutDir)\WinGetYamlFuzzing'
SYSTEM_ACCESSTOKEN: $(System.AccessToken)