Path: blob/main/build/azure-pipelines/darwin/product-build-darwin.yml
5401 views
parameters:1- name: VSCODE_ARCH2type: string3- name: VSCODE_CIBUILD4type: boolean5- name: VSCODE_RUN_ELECTRON_TESTS6type: boolean7default: false8- name: VSCODE_RUN_BROWSER_TESTS9type: boolean10default: false11- name: VSCODE_RUN_REMOTE_TESTS12type: boolean13default: false1415jobs:16- job: macOS_${{ parameters.VSCODE_ARCH }}17displayName: macOS (${{ upper(parameters.VSCODE_ARCH) }})18timeoutInMinutes: 9019variables:20VSCODE_ARCH: ${{ parameters.VSCODE_ARCH }}21BUILDS_API_URL: $(System.CollectionUri)$(System.TeamProject)/_apis/build/builds/$(Build.BuildId)/22templateContext:23outputParentDirectory: $(Build.ArtifactStagingDirectory)/out24outputs:25- ${{ if or(eq(parameters.VSCODE_RUN_ELECTRON_TESTS, true), eq(parameters.VSCODE_RUN_BROWSER_TESTS, true), eq(parameters.VSCODE_RUN_REMOTE_TESTS, true)) }}:26- output: pipelineArtifact27targetPath: $(Build.SourcesDirectory)/.build/crashes28artifactName: crash-dump-macos-$(VSCODE_ARCH)-$(System.JobAttempt)29displayName: "Publish Crash Reports"30sbomEnabled: false31isProduction: false32condition: failed()33- output: pipelineArtifact34targetPath: $(Build.SourcesDirectory)/node_modules35artifactName: node-modules-macos-$(VSCODE_ARCH)-$(System.JobAttempt)36displayName: "Publish Node Modules"37sbomEnabled: false38isProduction: false39condition: failed()40- output: pipelineArtifact41targetPath: $(Build.SourcesDirectory)/.build/logs42artifactName: logs-macos-$(VSCODE_ARCH)-$(System.JobAttempt)43displayName: "Publish Log Files"44sbomEnabled: false45isProduction: false46condition: succeededOrFailed()47- output: pipelineArtifact48${{ if eq(parameters.VSCODE_ARCH, 'x64') }}:49targetPath: $(Build.ArtifactStagingDirectory)/out/vscode_client_darwin_$(VSCODE_ARCH)_archive/VSCode-darwin.zip50${{ if eq(parameters.VSCODE_ARCH, 'arm64') }}:51targetPath: $(Build.ArtifactStagingDirectory)/out/vscode_client_darwin_$(VSCODE_ARCH)_archive/VSCode-darwin-arm64.zip52artifactName: vscode_client_darwin_$(VSCODE_ARCH)_archive53displayName: Publish client archive54sbomBuildDropPath: $(Build.ArtifactStagingDirectory)/VSCode-darwin-$(VSCODE_ARCH)55sbomPackageName: "VS Code macOS $(VSCODE_ARCH)"56sbomPackageVersion: $(Build.SourceVersion)57- output: pipelineArtifact58targetPath: $(Build.ArtifactStagingDirectory)/out/vscode_server_darwin_$(VSCODE_ARCH)_archive/vscode-server-darwin-$(VSCODE_ARCH).zip59artifactName: vscode_server_darwin_$(VSCODE_ARCH)_archive60displayName: Publish server archive61sbomBuildDropPath: $(Agent.BuildDirectory)/vscode-server-darwin-$(VSCODE_ARCH)62sbomPackageName: "VS Code macOS $(VSCODE_ARCH) Server"63sbomPackageVersion: $(Build.SourceVersion)64- output: pipelineArtifact65targetPath: $(Build.ArtifactStagingDirectory)/out/vscode_web_darwin_$(VSCODE_ARCH)_archive/vscode-server-darwin-$(VSCODE_ARCH)-web.zip66artifactName: vscode_web_darwin_$(VSCODE_ARCH)_archive67displayName: Publish web server archive68sbomBuildDropPath: $(Agent.BuildDirectory)/vscode-server-darwin-$(VSCODE_ARCH)-web69sbomPackageName: "VS Code macOS $(VSCODE_ARCH) Web"70sbomPackageVersion: $(Build.SourceVersion)71- output: pipelineArtifact72targetPath: $(Build.ArtifactStagingDirectory)/out/vscode_client_darwin_$(VSCODE_ARCH)_dmg/VSCode-darwin-$(VSCODE_ARCH).dmg73artifactName: vscode_client_darwin_$(VSCODE_ARCH)_dmg74displayName: Publish client DMG75sbomBuildDropPath: $(Build.ArtifactStagingDirectory)/VSCode-darwin-$(VSCODE_ARCH)76sbomPackageName: "VS Code macOS $(VSCODE_ARCH)"77sbomPackageVersion: $(Build.SourceVersion)78steps:79- template: ./steps/product-build-darwin-compile.yml@self80parameters:81VSCODE_ARCH: ${{ parameters.VSCODE_ARCH }}82VSCODE_CIBUILD: ${{ parameters.VSCODE_CIBUILD }}83VSCODE_RUN_ELECTRON_TESTS: ${{ parameters.VSCODE_RUN_ELECTRON_TESTS }}84VSCODE_RUN_BROWSER_TESTS: ${{ parameters.VSCODE_RUN_BROWSER_TESTS }}85VSCODE_RUN_REMOTE_TESTS: ${{ parameters.VSCODE_RUN_REMOTE_TESTS }}868788