Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/build/azure-pipelines/darwin/product-build-darwin.yml
5401 views
1
parameters:
2
- name: VSCODE_ARCH
3
type: string
4
- name: VSCODE_CIBUILD
5
type: boolean
6
- name: VSCODE_RUN_ELECTRON_TESTS
7
type: boolean
8
default: false
9
- name: VSCODE_RUN_BROWSER_TESTS
10
type: boolean
11
default: false
12
- name: VSCODE_RUN_REMOTE_TESTS
13
type: boolean
14
default: false
15
16
jobs:
17
- job: macOS_${{ parameters.VSCODE_ARCH }}
18
displayName: macOS (${{ upper(parameters.VSCODE_ARCH) }})
19
timeoutInMinutes: 90
20
variables:
21
VSCODE_ARCH: ${{ parameters.VSCODE_ARCH }}
22
BUILDS_API_URL: $(System.CollectionUri)$(System.TeamProject)/_apis/build/builds/$(Build.BuildId)/
23
templateContext:
24
outputParentDirectory: $(Build.ArtifactStagingDirectory)/out
25
outputs:
26
- ${{ if or(eq(parameters.VSCODE_RUN_ELECTRON_TESTS, true), eq(parameters.VSCODE_RUN_BROWSER_TESTS, true), eq(parameters.VSCODE_RUN_REMOTE_TESTS, true)) }}:
27
- output: pipelineArtifact
28
targetPath: $(Build.SourcesDirectory)/.build/crashes
29
artifactName: crash-dump-macos-$(VSCODE_ARCH)-$(System.JobAttempt)
30
displayName: "Publish Crash Reports"
31
sbomEnabled: false
32
isProduction: false
33
condition: failed()
34
- output: pipelineArtifact
35
targetPath: $(Build.SourcesDirectory)/node_modules
36
artifactName: node-modules-macos-$(VSCODE_ARCH)-$(System.JobAttempt)
37
displayName: "Publish Node Modules"
38
sbomEnabled: false
39
isProduction: false
40
condition: failed()
41
- output: pipelineArtifact
42
targetPath: $(Build.SourcesDirectory)/.build/logs
43
artifactName: logs-macos-$(VSCODE_ARCH)-$(System.JobAttempt)
44
displayName: "Publish Log Files"
45
sbomEnabled: false
46
isProduction: false
47
condition: succeededOrFailed()
48
- output: pipelineArtifact
49
${{ if eq(parameters.VSCODE_ARCH, 'x64') }}:
50
targetPath: $(Build.ArtifactStagingDirectory)/out/vscode_client_darwin_$(VSCODE_ARCH)_archive/VSCode-darwin.zip
51
${{ if eq(parameters.VSCODE_ARCH, 'arm64') }}:
52
targetPath: $(Build.ArtifactStagingDirectory)/out/vscode_client_darwin_$(VSCODE_ARCH)_archive/VSCode-darwin-arm64.zip
53
artifactName: vscode_client_darwin_$(VSCODE_ARCH)_archive
54
displayName: Publish client archive
55
sbomBuildDropPath: $(Build.ArtifactStagingDirectory)/VSCode-darwin-$(VSCODE_ARCH)
56
sbomPackageName: "VS Code macOS $(VSCODE_ARCH)"
57
sbomPackageVersion: $(Build.SourceVersion)
58
- output: pipelineArtifact
59
targetPath: $(Build.ArtifactStagingDirectory)/out/vscode_server_darwin_$(VSCODE_ARCH)_archive/vscode-server-darwin-$(VSCODE_ARCH).zip
60
artifactName: vscode_server_darwin_$(VSCODE_ARCH)_archive
61
displayName: Publish server archive
62
sbomBuildDropPath: $(Agent.BuildDirectory)/vscode-server-darwin-$(VSCODE_ARCH)
63
sbomPackageName: "VS Code macOS $(VSCODE_ARCH) Server"
64
sbomPackageVersion: $(Build.SourceVersion)
65
- output: pipelineArtifact
66
targetPath: $(Build.ArtifactStagingDirectory)/out/vscode_web_darwin_$(VSCODE_ARCH)_archive/vscode-server-darwin-$(VSCODE_ARCH)-web.zip
67
artifactName: vscode_web_darwin_$(VSCODE_ARCH)_archive
68
displayName: Publish web server archive
69
sbomBuildDropPath: $(Agent.BuildDirectory)/vscode-server-darwin-$(VSCODE_ARCH)-web
70
sbomPackageName: "VS Code macOS $(VSCODE_ARCH) Web"
71
sbomPackageVersion: $(Build.SourceVersion)
72
- output: pipelineArtifact
73
targetPath: $(Build.ArtifactStagingDirectory)/out/vscode_client_darwin_$(VSCODE_ARCH)_dmg/VSCode-darwin-$(VSCODE_ARCH).dmg
74
artifactName: vscode_client_darwin_$(VSCODE_ARCH)_dmg
75
displayName: Publish client DMG
76
sbomBuildDropPath: $(Build.ArtifactStagingDirectory)/VSCode-darwin-$(VSCODE_ARCH)
77
sbomPackageName: "VS Code macOS $(VSCODE_ARCH)"
78
sbomPackageVersion: $(Build.SourceVersion)
79
steps:
80
- template: ./steps/product-build-darwin-compile.yml@self
81
parameters:
82
VSCODE_ARCH: ${{ parameters.VSCODE_ARCH }}
83
VSCODE_CIBUILD: ${{ parameters.VSCODE_CIBUILD }}
84
VSCODE_RUN_ELECTRON_TESTS: ${{ parameters.VSCODE_RUN_ELECTRON_TESTS }}
85
VSCODE_RUN_BROWSER_TESTS: ${{ parameters.VSCODE_RUN_BROWSER_TESTS }}
86
VSCODE_RUN_REMOTE_TESTS: ${{ parameters.VSCODE_RUN_REMOTE_TESTS }}
87
88