Path: blob/main/build/azure-pipelines/win32/product-build-win32-cli.yml
4772 views
parameters:1- name: VSCODE_ARCH2type: string3- name: VSCODE_CHECK_ONLY4type: boolean5default: false6- name: VSCODE_QUALITY7type: string89jobs:10- job: WindowsCLI_${{ upper(parameters.VSCODE_ARCH) }}11displayName: Windows (${{ upper(parameters.VSCODE_ARCH) }})12pool:13name: 1es-windows-2022-x6414os: windows15timeoutInMinutes: 3016variables:17VSCODE_ARCH: ${{ parameters.VSCODE_ARCH }}18templateContext:19outputs:20- ${{ if not(parameters.VSCODE_CHECK_ONLY) }}:21- output: pipelineArtifact22targetPath: $(Build.ArtifactStagingDirectory)/unsigned_vscode_cli_win32_$(VSCODE_ARCH)_cli.zip23artifactName: unsigned_vscode_cli_win32_$(VSCODE_ARCH)_cli24displayName: Publish unsigned_vscode_cli_win32_$(VSCODE_ARCH)_cli artifact25sbomEnabled: false26isProduction: false2728steps:29- template: ../common/checkout.yml@self3031- task: NodeTool@032inputs:33versionSource: fromFile34versionFilePath: .nvmrc3536- template: ../cli/cli-apply-patches.yml@self3738- task: Npm@139displayName: Download openssl prebuilt40inputs:41command: custom42customCommand: pack @vscode-internal/openssl-prebuilt@0.0.1143customRegistry: useFeed44customFeed: "Monaco/openssl-prebuilt"45workingDir: $(Build.ArtifactStagingDirectory)4647- powershell: |48mkdir $(Build.ArtifactStagingDirectory)/openssl49tar -xvzf $(Build.ArtifactStagingDirectory)/vscode-internal-openssl-prebuilt-0.0.11.tgz --strip-components=1 --directory=$(Build.ArtifactStagingDirectory)/openssl50displayName: Extract openssl prebuilt5152- template: ./steps/product-build-win32-install-rust.yml@self53parameters:54targets:55- ${{ if eq(parameters.VSCODE_ARCH, 'x64') }}:56- x86_64-pc-windows-msvc57- ${{ if eq(parameters.VSCODE_ARCH, 'arm64') }}:58- aarch64-pc-windows-msvc5960- template: ../cli/cli-compile.yml@self61parameters:62VSCODE_QUALITY: ${{ parameters.VSCODE_QUALITY }}63${{ if eq(parameters.VSCODE_ARCH, 'x64') }}:64VSCODE_CLI_TARGET: x86_64-pc-windows-msvc65${{ if eq(parameters.VSCODE_ARCH, 'arm64') }}:66VSCODE_CLI_TARGET: aarch64-pc-windows-msvc67VSCODE_CLI_ARTIFACT: unsigned_vscode_cli_win32_$(VSCODE_ARCH)_cli68VSCODE_CHECK_ONLY: ${{ parameters.VSCODE_CHECK_ONLY }}69VSCODE_CLI_ENV:70OPENSSL_LIB_DIR: $(Build.ArtifactStagingDirectory)/openssl/$(VSCODE_ARCH)-windows-static/lib71OPENSSL_INCLUDE_DIR: $(Build.ArtifactStagingDirectory)/openssl/$(VSCODE_ARCH)-windows-static/include72${{ if eq(parameters.VSCODE_ARCH, 'x64') }}:73RUSTFLAGS: "-Ctarget-feature=+crt-static -Clink-args=/guard:cf -Clink-args=/CETCOMPAT"74${{ if eq(parameters.VSCODE_ARCH, 'arm64') }}:75RUSTFLAGS: "-Ctarget-feature=+crt-static -Clink-args=/guard:cf -Clink-args=/CETCOMPAT:NO"76CFLAGS: "/guard:cf /Qspectre"777879