Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/build/azure-pipelines/win32/product-build-win32.yml
3520 views
1
parameters:
2
- name: VSCODE_ARCH
3
type: string
4
- name: VSCODE_CIBUILD
5
type: boolean
6
- name: VSCODE_QUALITY
7
type: string
8
- name: VSCODE_RUN_ELECTRON_TESTS
9
type: boolean
10
default: false
11
- name: VSCODE_RUN_BROWSER_TESTS
12
type: boolean
13
default: false
14
- name: VSCODE_RUN_REMOTE_TESTS
15
type: boolean
16
default: false
17
18
jobs:
19
- job: Windows_${{ parameters.VSCODE_ARCH }}
20
displayName: Windows${{ upper(parameters.VSCODE_ARCH) }}
21
timeoutInMinutes: 90
22
variables:
23
VSCODE_ARCH: ${{ parameters.VSCODE_ARCH }}
24
templateContext:
25
outputParentDirectory: $(Build.SourcesDirectory)/.build/win32-$(VSCODE_ARCH)
26
outputs:
27
- ${{ if or(eq(parameters.VSCODE_RUN_ELECTRON_TESTS, true), eq(parameters.VSCODE_RUN_BROWSER_TESTS, true), eq(parameters.VSCODE_RUN_REMOTE_TESTS, true)) }}:
28
- output: pipelineArtifact
29
targetPath: .build/crashes
30
artifactName: crash-dump-windows-$(VSCODE_ARCH)-$(System.JobAttempt)
31
displayName: Publish Crash Reports
32
sbomEnabled: false
33
isProduction: false
34
condition: failed()
35
- output: pipelineArtifact
36
targetPath: node_modules
37
artifactName: node-modules-windows-$(VSCODE_ARCH)-$(System.JobAttempt)
38
displayName: Publish Node Modules
39
sbomEnabled: false
40
isProduction: false
41
condition: failed()
42
- output: pipelineArtifact
43
targetPath: .build/logs
44
artifactName: logs-windows-$(VSCODE_ARCH)-$(System.JobAttempt)
45
displayName: Publish Log Files
46
sbomEnabled: false
47
isProduction: false
48
condition: succeededOrFailed()
49
- output: pipelineArtifact
50
targetPath: .build/node-cpuprofile
51
artifactName: $(ARTIFACT_PREFIX)node-cpuprofile-$(VSCODE_ARCH)
52
displayName: Publish Codesign cpu profile
53
sbomEnabled: false
54
isProduction: false
55
- output: pipelineArtifact
56
targetPath: $(SYSTEM_SETUP_PATH)
57
artifactName: $(ARTIFACT_PREFIX)vscode_client_win32_$(VSCODE_ARCH)_setup
58
displayName: Publish system setup
59
sbomBuildDropPath: $(Agent.BuildDirectory)/VSCode-win32-$(VSCODE_ARCH)
60
sbomPackageName: "VS Code Windows $(VSCODE_ARCH) System Setup"
61
sbomPackageVersion: $(Build.SourceVersion)
62
condition: and(succeededOrFailed(), ne(variables['SYSTEM_SETUP_PATH'], ''))
63
- output: pipelineArtifact
64
targetPath: $(USER_SETUP_PATH)
65
artifactName: $(ARTIFACT_PREFIX)vscode_client_win32_$(VSCODE_ARCH)_user-setup
66
displayName: Publish user setup
67
sbomBuildDropPath: $(Agent.BuildDirectory)/VSCode-win32-$(VSCODE_ARCH)
68
sbomPackageName: "VS Code Windows $(VSCODE_ARCH) User Setup"
69
sbomPackageVersion: $(Build.SourceVersion)
70
condition: and(succeededOrFailed(), ne(variables['USER_SETUP_PATH'], ''))
71
- output: pipelineArtifact
72
targetPath: $(CLIENT_PATH)
73
artifactName: $(ARTIFACT_PREFIX)vscode_client_win32_$(VSCODE_ARCH)_archive
74
displayName: Publish archive
75
sbomBuildDropPath: $(Agent.BuildDirectory)/VSCode-win32-$(VSCODE_ARCH)
76
sbomPackageName: "VS Code Windows $(VSCODE_ARCH)"
77
sbomPackageVersion: $(Build.SourceVersion)
78
condition: and(succeededOrFailed(), ne(variables['CLIENT_PATH'], ''))
79
- output: pipelineArtifact
80
targetPath: $(SERVER_PATH)
81
artifactName: $(ARTIFACT_PREFIX)vscode_server_win32_$(VSCODE_ARCH)_archive
82
displayName: Publish server archive
83
sbomBuildDropPath: $(Agent.BuildDirectory)/vscode-server-win32-$(VSCODE_ARCH)
84
sbomPackageName: "VS Code Windows $(VSCODE_ARCH) Server"
85
sbomPackageVersion: $(Build.SourceVersion)
86
condition: and(succeededOrFailed(), ne(variables['SERVER_PATH'], ''))
87
- output: pipelineArtifact
88
targetPath: $(WEB_PATH)
89
artifactName: $(ARTIFACT_PREFIX)vscode_web_win32_$(VSCODE_ARCH)_archive
90
displayName: Publish web server archive
91
sbomBuildDropPath: $(Agent.BuildDirectory)/vscode-server-win32-$(VSCODE_ARCH)-web
92
sbomPackageName: "VS Code Windows $(VSCODE_ARCH) Web"
93
sbomPackageVersion: $(Build.SourceVersion)
94
condition: and(succeededOrFailed(), ne(variables['WEB_PATH'], ''))
95
steps:
96
- template: product-build-win32-compile.yml@self
97
parameters:
98
VSCODE_ARCH: ${{ parameters.VSCODE_ARCH }}
99
VSCODE_CIBUILD: ${{ parameters.VSCODE_CIBUILD }}
100
VSCODE_QUALITY: ${{ parameters.VSCODE_QUALITY }}
101
VSCODE_RUN_ELECTRON_TESTS: ${{ parameters.VSCODE_RUN_ELECTRON_TESTS }}
102
VSCODE_RUN_BROWSER_TESTS: ${{ parameters.VSCODE_RUN_BROWSER_TESTS }}
103
VSCODE_RUN_REMOTE_TESTS: ${{ parameters.VSCODE_RUN_REMOTE_TESTS }}
104
105