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
4772 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
variables:
18
# todo@connor4312 to diagnose build flakes
19
MSRUSTUP_LOG: debug
20
VSCODE_ARCH: ${{ parameters.VSCODE_ARCH }}
21
templateContext:
22
outputs:
23
- ${{ if not(parameters.VSCODE_CHECK_ONLY) }}:
24
- output: pipelineArtifact
25
targetPath: $(Build.ArtifactStagingDirectory)/unsigned_vscode_cli_darwin_$(VSCODE_ARCH)_cli.zip
26
artifactName: unsigned_vscode_cli_darwin_$(VSCODE_ARCH)_cli
27
displayName: Publish unsigned_vscode_cli_darwin_$(VSCODE_ARCH)_cli artifact
28
sbomEnabled: false
29
isProduction: false
30
steps:
31
- template: ../common/checkout.yml@self
32
33
- task: NodeTool@0
34
inputs:
35
versionSource: fromFile
36
versionFilePath: .nvmrc
37
38
- template: ../cli/cli-apply-patches.yml@self
39
40
- task: Npm@1
41
displayName: Download openssl prebuilt
42
inputs:
43
command: custom
44
customCommand: pack @vscode-internal/openssl-prebuilt@0.0.11
45
customRegistry: useFeed
46
customFeed: "Monaco/openssl-prebuilt"
47
workingDir: $(Build.ArtifactStagingDirectory)
48
49
- script: |
50
set -e
51
mkdir $(Build.ArtifactStagingDirectory)/openssl
52
tar -xvzf $(Build.ArtifactStagingDirectory)/vscode-internal-openssl-prebuilt-0.0.11.tgz --strip-components=1 --directory=$(Build.ArtifactStagingDirectory)/openssl
53
displayName: Extract openssl prebuilt
54
55
- template: ../cli/install-rust-posix.yml@self
56
parameters:
57
targets:
58
- ${{ if eq(parameters.VSCODE_ARCH, 'x64') }}:
59
- x86_64-apple-darwin
60
- ${{ if eq(parameters.VSCODE_ARCH, 'arm64') }}:
61
- aarch64-apple-darwin
62
63
- ${{ if eq(parameters.VSCODE_ARCH, 'x64') }}:
64
- template: ../cli/cli-compile.yml@self
65
parameters:
66
VSCODE_QUALITY: ${{ parameters.VSCODE_QUALITY }}
67
VSCODE_CLI_TARGET: x86_64-apple-darwin
68
VSCODE_CLI_ARTIFACT: unsigned_vscode_cli_darwin_x64_cli
69
VSCODE_CHECK_ONLY: ${{ parameters.VSCODE_CHECK_ONLY }}
70
VSCODE_CLI_ENV:
71
OPENSSL_LIB_DIR: $(Build.ArtifactStagingDirectory)/openssl/x64-osx/lib
72
OPENSSL_INCLUDE_DIR: $(Build.ArtifactStagingDirectory)/openssl/x64-osx/include
73
74
- ${{ if eq(parameters.VSCODE_ARCH, 'arm64') }}:
75
- template: ../cli/cli-compile.yml@self
76
parameters:
77
VSCODE_QUALITY: ${{ parameters.VSCODE_QUALITY }}
78
VSCODE_CLI_TARGET: aarch64-apple-darwin
79
VSCODE_CLI_ARTIFACT: unsigned_vscode_cli_darwin_arm64_cli
80
VSCODE_CHECK_ONLY: ${{ parameters.VSCODE_CHECK_ONLY }}
81
VSCODE_CLI_ENV:
82
OPENSSL_LIB_DIR: $(Build.ArtifactStagingDirectory)/openssl/arm64-osx/lib
83
OPENSSL_INCLUDE_DIR: $(Build.ArtifactStagingDirectory)/openssl/arm64-osx/include
84
85