Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/build/azure-pipelines/darwin/cli-build-darwin.yml
3520 views
1
parameters:
2
- name: VSCODE_QUALITY
3
type: string
4
- name: VSCODE_BUILD_MACOS
5
type: boolean
6
default: false
7
- name: VSCODE_BUILD_MACOS_ARM64
8
type: boolean
9
default: false
10
- name: VSCODE_CHECK_ONLY
11
type: boolean
12
default: false
13
14
steps:
15
- template: ../common/checkout.yml@self
16
17
- task: NodeTool@0
18
inputs:
19
versionSource: fromFile
20
versionFilePath: .nvmrc
21
22
- template: ../cli/cli-apply-patches.yml@self
23
24
- task: Npm@1
25
displayName: Download openssl prebuilt
26
inputs:
27
command: custom
28
customCommand: pack @vscode-internal/openssl-prebuilt@0.0.11
29
customRegistry: useFeed
30
customFeed: "Monaco/openssl-prebuilt"
31
workingDir: $(Build.ArtifactStagingDirectory)
32
33
- script: |
34
set -e
35
mkdir $(Build.ArtifactStagingDirectory)/openssl
36
tar -xvzf $(Build.ArtifactStagingDirectory)/vscode-internal-openssl-prebuilt-0.0.11.tgz --strip-components=1 --directory=$(Build.ArtifactStagingDirectory)/openssl
37
displayName: Extract openssl prebuilt
38
39
- template: ../cli/install-rust-posix.yml@self
40
parameters:
41
targets:
42
- ${{ if eq(parameters.VSCODE_BUILD_MACOS, true) }}:
43
- x86_64-apple-darwin
44
- ${{ if eq(parameters.VSCODE_BUILD_MACOS_ARM64, true) }}:
45
- aarch64-apple-darwin
46
47
- ${{ if eq(parameters.VSCODE_BUILD_MACOS, true) }}:
48
- template: ../cli/cli-compile.yml@self
49
parameters:
50
VSCODE_QUALITY: ${{ parameters.VSCODE_QUALITY }}
51
VSCODE_CLI_TARGET: x86_64-apple-darwin
52
VSCODE_CLI_ARTIFACT: unsigned_vscode_cli_darwin_x64_cli
53
VSCODE_CHECK_ONLY: ${{ parameters.VSCODE_CHECK_ONLY }}
54
VSCODE_CLI_ENV:
55
OPENSSL_LIB_DIR: $(Build.ArtifactStagingDirectory)/openssl/x64-osx/lib
56
OPENSSL_INCLUDE_DIR: $(Build.ArtifactStagingDirectory)/openssl/x64-osx/include
57
58
- ${{ if eq(parameters.VSCODE_BUILD_MACOS_ARM64, true) }}:
59
- template: ../cli/cli-compile.yml@self
60
parameters:
61
VSCODE_QUALITY: ${{ parameters.VSCODE_QUALITY }}
62
VSCODE_CLI_TARGET: aarch64-apple-darwin
63
VSCODE_CLI_ARTIFACT: unsigned_vscode_cli_darwin_arm64_cli
64
VSCODE_CHECK_ONLY: ${{ parameters.VSCODE_CHECK_ONLY }}
65
VSCODE_CLI_ENV:
66
OPENSSL_LIB_DIR: $(Build.ArtifactStagingDirectory)/openssl/arm64-osx/lib
67
OPENSSL_INCLUDE_DIR: $(Build.ArtifactStagingDirectory)/openssl/arm64-osx/include
68
69
- ${{ if not(parameters.VSCODE_CHECK_ONLY) }}:
70
- ${{ if eq(parameters.VSCODE_BUILD_MACOS, true) }}:
71
- template: ../common/publish-artifact.yml@self
72
parameters:
73
targetPath: $(Build.ArtifactStagingDirectory)/unsigned_vscode_cli_darwin_x64_cli.zip
74
artifactName: unsigned_vscode_cli_darwin_x64_cli
75
displayName: Publish unsigned_vscode_cli_darwin_x64_cli artifact
76
sbomEnabled: false
77
78
- ${{ if eq(parameters.VSCODE_BUILD_MACOS_ARM64, true) }}:
79
- template: ../common/publish-artifact.yml@self
80
parameters:
81
targetPath: $(Build.ArtifactStagingDirectory)/unsigned_vscode_cli_darwin_arm64_cli.zip
82
artifactName: unsigned_vscode_cli_darwin_arm64_cli
83
displayName: Publish unsigned_vscode_cli_darwin_arm64_cli artifact
84
sbomEnabled: false
85
86