Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/build/azure-pipelines/win32/product-build-win32-cli-compile.yml
3520 views
1
parameters:
2
- name: VSCODE_BUILD_WIN32
3
type: boolean
4
default: false
5
- name: VSCODE_BUILD_WIN32_ARM64
6
type: boolean
7
default: false
8
- name: VSCODE_CHECK_ONLY
9
type: boolean
10
default: false
11
- name: VSCODE_QUALITY
12
type: string
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
- powershell: |
34
mkdir $(Build.ArtifactStagingDirectory)/openssl
35
tar -xvzf $(Build.ArtifactStagingDirectory)/vscode-internal-openssl-prebuilt-0.0.11.tgz --strip-components=1 --directory=$(Build.ArtifactStagingDirectory)/openssl
36
displayName: Extract openssl prebuilt
37
38
- template: ../cli/install-rust-win32.yml@self
39
parameters:
40
targets:
41
- ${{ if eq(parameters.VSCODE_BUILD_WIN32, true) }}:
42
- x86_64-pc-windows-msvc
43
- ${{ if eq(parameters.VSCODE_BUILD_WIN32_ARM64, true) }}:
44
- aarch64-pc-windows-msvc
45
46
- ${{ if eq(parameters.VSCODE_BUILD_WIN32, true) }}:
47
- template: ../cli/cli-compile.yml@self
48
parameters:
49
VSCODE_QUALITY: ${{ parameters.VSCODE_QUALITY }}
50
VSCODE_CLI_TARGET: x86_64-pc-windows-msvc
51
VSCODE_CLI_ARTIFACT: unsigned_vscode_cli_win32_x64_cli
52
VSCODE_CHECK_ONLY: ${{ parameters.VSCODE_CHECK_ONLY }}
53
VSCODE_CLI_ENV:
54
OPENSSL_LIB_DIR: $(Build.ArtifactStagingDirectory)/openssl/x64-windows-static/lib
55
OPENSSL_INCLUDE_DIR: $(Build.ArtifactStagingDirectory)/openssl/x64-windows-static/include
56
RUSTFLAGS: "-Ctarget-feature=+crt-static -Clink-args=/guard:cf -Clink-args=/CETCOMPAT"
57
CFLAGS: "/guard:cf /Qspectre"
58
59
- ${{ if eq(parameters.VSCODE_BUILD_WIN32_ARM64, true) }}:
60
- template: ../cli/cli-compile.yml@self
61
parameters:
62
VSCODE_QUALITY: ${{ parameters.VSCODE_QUALITY }}
63
VSCODE_CLI_TARGET: aarch64-pc-windows-msvc
64
VSCODE_CLI_ARTIFACT: unsigned_vscode_cli_win32_arm64_cli
65
VSCODE_CHECK_ONLY: ${{ parameters.VSCODE_CHECK_ONLY }}
66
VSCODE_CLI_ENV:
67
OPENSSL_LIB_DIR: $(Build.ArtifactStagingDirectory)/openssl/arm64-windows-static/lib
68
OPENSSL_INCLUDE_DIR: $(Build.ArtifactStagingDirectory)/openssl/arm64-windows-static/include
69
RUSTFLAGS: "-C target-feature=+crt-static -Clink-args=/guard:cf -Clink-args=/CETCOMPAT:NO"
70
CFLAGS: "/guard:cf /Qspectre"
71
72
- ${{ if not(parameters.VSCODE_CHECK_ONLY) }}:
73
- ${{ if eq(parameters.VSCODE_BUILD_WIN32_ARM64, true) }}:
74
- template: ../common/publish-artifact.yml@self
75
parameters:
76
targetPath: $(Build.ArtifactStagingDirectory)/unsigned_vscode_cli_win32_arm64_cli.zip
77
artifactName: unsigned_vscode_cli_win32_arm64_cli
78
displayName: Publish unsigned_vscode_cli_win32_arm64_cli artifact
79
sbomEnabled: false
80
81
- ${{ if eq(parameters.VSCODE_BUILD_WIN32, true) }}:
82
- template: ../common/publish-artifact.yml@self
83
parameters:
84
targetPath: $(Build.ArtifactStagingDirectory)/unsigned_vscode_cli_win32_x64_cli.zip
85
artifactName: unsigned_vscode_cli_win32_x64_cli
86
displayName: Publish unsigned_vscode_cli_win32_x64_cli artifact
87
sbomEnabled: false
88
89