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