-
Notifications
You must be signed in to change notification settings - Fork 430
Expand file tree
/
Copy pathWindowsAppSDK-BuildInstaller-Stage.yml
More file actions
80 lines (78 loc) · 3.6 KB
/
WindowsAppSDK-BuildInstaller-Stage.yml
File metadata and controls
80 lines (78 loc) · 3.6 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
# This Installer Stage is purely for validation
# The actual installer is built with the Aggregator build
stages:
- stage: Installer
dependsOn: []
jobs:
- job: BuildInstaller
dependsOn: []
pool:
type: windows
# isCustom: true
# name: 'ProjectReunionESPool-2022' # This stage is purely for validation
# # If we just let the pool give us MMS2022, we will get an error saying an artifact for 1ESPT is missing
# demands: ImageOverride -equals MMS2022-1ES-GPT
strategy:
maxParallel: 10
matrix:
Release_x86:
buildPlatform: 'x86'
buildConfiguration: 'Release'
Release_x64:
buildPlatform: 'x64'
buildConfiguration: 'Release'
Release_arm64:
buildPlatform: 'arm64'
buildConfiguration: 'Release'
variables:
- name: ob_outputDirectory
value: '$(REPOROOT)\out'
- name: ob_artifactSuffix
value: '_$(buildConfiguration)_$(buildPlatform)'
- name: ob_artifactBaseName
value: "Installer$(ob_artifactSuffix)"
# foundationRepoPath should be empty because we are not doing multiple checkouts hence
# it is not under $(Build.SourcesDirectory)\WindowsAppSDK
- name: foundationRepoPath
value: ""
- template: AzurePipelinesTemplates/WindowsAppSDK-Global-LKGVersions.yml@WindowsAppSDKVersionConfig
- name: localCompilerOverridePackageName
value: $[coalesce(variables.compilerOverridePackageName, variables.global_CompilerOverridePackageName)]
- name: localCompilerOverridePackageVersion
value: $[coalesce(variables.compilerOverridePackageVersion, variables.global_CompilerOverridePackageVersion)]
- name: localCompilerOverrideNupkgVersion
value: $[coalesce(variables.compilerOverrideNupkgVersion, variables.global_CompilerOverrideNupkgVersion)]
- name: ob_sdl_checkCompliantCompilerWarnings
value: true
- name: ob_sdl_prefast_runDuring
value: 'Build'
- name: ob_sdl_msbuildOverride
value: true
condition: ne(variables.LatestOfficialBuildID, '')
steps:
- script: |
echo Build.SourceBranch=$(Build.SourceBranch)
echo Build.Reason=$(Build.Reason)
echo compilerOverridePackageName=$(compilerOverridePackageName)
echo compilerOverridePackageVersion=$(compilerOverridePackageVersion)
echo global_CompilerOverridePackageName=$(global_CompilerOverridePackageName)
echo global_CompilerOverridePackageVersion=$(global_CompilerOverridePackageVersion)
echo localCompilerOverridePackageName=$(localCompilerOverridePackageName)
echo localCompilerOverridePackageVersion=$(localCompilerOverridePackageVersion)
echo localCompilerOverrideNupkgVersion=$(localCompilerOverrideNupkgVersion)
echo System.PullRequest.targetBranchName=$(System.PullRequest.targetBranchName)
echo ob_sdl_checkCompliantCompilerWarnings=$(ob_sdl_checkCompliantCompilerWarnings)
echo ob_sdl_prefast_runDuring=$(ob_sdl_prefast_runDuring)
echo ob_sdl_msbuildOverride=$(ob_sdl_msbuildOverride)
# The MMS2022 image used to come with Windows SDK 10.0.26100, but not any more.
- task: PowerShell@2
displayName: 'Add Windows SDK 10.0.26100'
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
inputs:
targetType: filePath
filePath: $(Build.SourcesDirectory)\build\scripts\windows-sdk.ps1
# TODO: the SdkVersion parameter does not yet support arbitrary versions.
arguments: >
-SdkVersion "10.0.26100"
- template: WindowsAppSDK-BuildInstaller-Steps.yml@self