2022-09-20 07:40:39 +08:00
|
|
|
parameters:
|
2022-10-11 01:16:02 +08:00
|
|
|
- name: VSCODE_BUILD_WIN32
|
|
|
|
type: boolean
|
2022-10-15 06:39:10 +08:00
|
|
|
- name: VSCODE_BUILD_WIN32_32BIT
|
|
|
|
type: boolean
|
2022-10-11 01:16:02 +08:00
|
|
|
- name: VSCODE_BUILD_WIN32_ARM64
|
|
|
|
type: boolean
|
2022-10-06 01:05:40 +08:00
|
|
|
- name: VSCODE_QUALITY
|
|
|
|
type: string
|
2022-09-20 07:40:39 +08:00
|
|
|
- name: channel
|
|
|
|
type: string
|
|
|
|
default: stable
|
|
|
|
|
|
|
|
steps:
|
2022-10-06 01:05:40 +08:00
|
|
|
- task: NodeTool@0
|
|
|
|
inputs:
|
|
|
|
versionSpec: "16.x"
|
|
|
|
|
|
|
|
- template: ../mixin-distro-win32.yml
|
|
|
|
parameters:
|
2022-10-19 01:57:03 +08:00
|
|
|
VSCODE_QUALITY: ${{ variables.VSCODE_QUALITY }}
|
2022-10-06 01:05:40 +08:00
|
|
|
|
|
|
|
- powershell: |
|
|
|
|
. build/azure-pipelines/win32/exec.ps1
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
exec { node build/azure-pipelines/cli/prepare.js }
|
|
|
|
displayName: Prepare CLI build
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: "$(github-distro-mixin-password)"
|
|
|
|
|
|
|
|
- template: ../cli/install-rust-win32.yml
|
2022-09-20 07:40:39 +08:00
|
|
|
parameters:
|
2022-10-11 02:08:59 +08:00
|
|
|
targets:
|
|
|
|
- ${{ if eq(parameters.VSCODE_BUILD_WIN32, true) }}:
|
|
|
|
- x86_64-pc-windows-msvc
|
|
|
|
- ${{ if eq(parameters.VSCODE_BUILD_WIN32_ARM64, true) }}:
|
|
|
|
- aarch64-pc-windows-msvc
|
2022-10-15 06:39:10 +08:00
|
|
|
- ${{ if eq(parameters.VSCODE_BUILD_WIN32_32BIT, true) }}:
|
|
|
|
- i686-pc-windows-msvc
|
2022-09-20 07:40:39 +08:00
|
|
|
|
2022-10-19 01:57:03 +08:00
|
|
|
- template: ../vcpkg-install-win32.yml
|
2022-10-11 01:16:02 +08:00
|
|
|
parameters:
|
|
|
|
targets:
|
|
|
|
- ${{ if eq(parameters.VSCODE_BUILD_WIN32, true) }}:
|
|
|
|
- x64-windows-static-md
|
|
|
|
- ${{ if eq(parameters.VSCODE_BUILD_WIN32_ARM64, true) }}:
|
|
|
|
- arm64-windows-static-md
|
2022-10-15 06:39:10 +08:00
|
|
|
- ${{ if eq(parameters.VSCODE_BUILD_WIN32_32BIT, true) }}:
|
|
|
|
- x86-windows-static-md
|
2022-10-11 01:16:02 +08:00
|
|
|
vcpkgDir: $(Build.SourcesDirectory)/build/azure-pipelines/cli/vcpkg
|
2022-10-19 01:57:03 +08:00
|
|
|
vcpkgArgs: --overlay-ports=$(Build.SourcesDirectory)/build/azure-pipelines/cli/vcpkg-overlay-ports
|
2022-10-11 01:16:02 +08:00
|
|
|
targetDirectory: $(Build.ArtifactStagingDirectory)/deps
|
2022-10-06 01:05:40 +08:00
|
|
|
|
2022-10-11 02:08:59 +08:00
|
|
|
- ${{ if eq(parameters.VSCODE_BUILD_WIN32, true) }}:
|
|
|
|
- template: ../cli/cli-compile-and-publish.yml
|
|
|
|
parameters:
|
|
|
|
VSCODE_CLI_TARGET: x86_64-pc-windows-msvc
|
|
|
|
VSCODE_CLI_ARTIFACT: unsigned_vscode_cli_win32_x64_cli
|
|
|
|
VSCODE_CLI_ENV:
|
2022-09-20 07:40:39 +08:00
|
|
|
OPENSSL_LIB_DIR: $(Build.ArtifactStagingDirectory)/deps/x64-windows-static-md/lib
|
|
|
|
OPENSSL_INCLUDE_DIR: $(Build.ArtifactStagingDirectory)/deps/x64-windows-static-md/include
|
2022-10-11 02:08:59 +08:00
|
|
|
|
|
|
|
- ${{ if eq(parameters.VSCODE_BUILD_WIN32_ARM64, true) }}:
|
|
|
|
- template: ../cli/cli-compile-and-publish.yml
|
|
|
|
parameters:
|
|
|
|
VSCODE_CLI_TARGET: aarch64-pc-windows-msvc
|
|
|
|
VSCODE_CLI_ARTIFACT: unsigned_vscode_cli_win32_arm64_cli
|
|
|
|
VSCODE_CLI_ENV:
|
2022-09-20 07:40:39 +08:00
|
|
|
OPENSSL_LIB_DIR: $(Build.ArtifactStagingDirectory)/deps/arm64-windows-static-md/lib
|
|
|
|
OPENSSL_INCLUDE_DIR: $(Build.ArtifactStagingDirectory)/deps/arm64-windows-static-md/include
|
2022-10-15 06:39:10 +08:00
|
|
|
|
|
|
|
- ${{ if eq(parameters.VSCODE_BUILD_WIN32_32BIT, true) }}:
|
|
|
|
- template: ../cli/cli-compile-and-publish.yml
|
|
|
|
parameters:
|
|
|
|
VSCODE_CLI_TARGET: i686-pc-windows-msvc
|
|
|
|
VSCODE_CLI_ARTIFACT: unsigned_vscode_cli_win32_ia32_cli
|
|
|
|
VSCODE_CLI_ENV:
|
|
|
|
OPENSSL_LIB_DIR: $(Build.ArtifactStagingDirectory)/deps/x86-windows-static-md/lib
|
|
|
|
OPENSSL_INCLUDE_DIR: $(Build.ArtifactStagingDirectory)/deps/x86-windows-static-md/include
|