mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
![João Moreno](/assets/img/avatar_default.png)
* extend 1es pipeline template * oops * fix template references * argh * hmm * hm * hm * use outputs for compilation artifact * this * use 1ES.PublishPipelineArtifact@1 instead of publish * more 1ES.PublishPipelineArtifact@1 adoption * provide windows pool for sdl sources * sdl * fix pools * fix macos * disable sbom for intermediate artifacts * use mariner linux * try inline tsa options * fix credscan * hm * sudo it * more suppressions * be explicit with SBOM build drop paths * fix indentation * fix file extensions * fix cli sbom build drop paths * fix more build * fix unzip cli * careful with _manifest in artifacts * do not close file * add logging * debug * use snapcraft container * remove size check * fix macos cli step * fix snap permissions * fix macos * better logs * fix snap * more cred scan suppressions * even more supressiong * alpine-arm64: try using x64 * Revert "alpine-arm64: try using x64" This reverts commitbf2003bf60
. * test docker * I wonder * logs * hm * fix indentation * hm * hm * fix snap finds * remove auth * use hostArchitecture * snap: limit find * hm * sudo * Add validateToolOutput: None to the build pipeline * bring back sdl-scan * try all tools: true * use release * Update Azure Pipelines YAML file for Linux product build and test * hm * hm * same for win32 * hm * hm * Revert "hm" This reverts commit1b9dcae85b
. * use branch * fix template file * fix template paths
89 lines
3.5 KiB
YAML
89 lines
3.5 KiB
YAML
parameters:
|
|
- name: VSCODE_QUALITY
|
|
type: string
|
|
- name: VSCODE_BUILD_MACOS
|
|
type: boolean
|
|
default: false
|
|
- name: VSCODE_BUILD_MACOS_ARM64
|
|
type: boolean
|
|
default: false
|
|
- name: VSCODE_CHECK_ONLY
|
|
type: boolean
|
|
default: false
|
|
|
|
steps:
|
|
- task: NodeTool@0
|
|
inputs:
|
|
versionSource: fromFile
|
|
versionFilePath: .nvmrc
|
|
nodejsMirror: https://github.com/joaomoreno/node-mirror/releases/download
|
|
|
|
- ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}:
|
|
- template: ../cli/cli-apply-patches.yml@self
|
|
|
|
- task: Npm@1
|
|
displayName: Download openssl prebuilt
|
|
inputs:
|
|
command: custom
|
|
customCommand: pack @vscode-internal/openssl-prebuilt@0.0.11
|
|
customRegistry: useFeed
|
|
customFeed: "Monaco/openssl-prebuilt"
|
|
workingDir: $(Build.ArtifactStagingDirectory)
|
|
|
|
- script: |
|
|
set -e
|
|
mkdir $(Build.ArtifactStagingDirectory)/openssl
|
|
tar -xvzf $(Build.ArtifactStagingDirectory)/vscode-internal-openssl-prebuilt-0.0.11.tgz --strip-components=1 --directory=$(Build.ArtifactStagingDirectory)/openssl
|
|
displayName: Extract openssl prebuilt
|
|
|
|
- template: ../cli/install-rust-posix.yml@self
|
|
parameters:
|
|
targets:
|
|
- ${{ if eq(parameters.VSCODE_BUILD_MACOS, true) }}:
|
|
- x86_64-apple-darwin
|
|
- ${{ if eq(parameters.VSCODE_BUILD_MACOS_ARM64, true) }}:
|
|
- aarch64-apple-darwin
|
|
|
|
- ${{ if eq(parameters.VSCODE_BUILD_MACOS, true) }}:
|
|
- template: ../cli/cli-compile.yml@self
|
|
parameters:
|
|
VSCODE_QUALITY: ${{ parameters.VSCODE_QUALITY }}
|
|
VSCODE_CLI_TARGET: x86_64-apple-darwin
|
|
VSCODE_CLI_ARTIFACT: unsigned_vscode_cli_darwin_x64_cli
|
|
VSCODE_CHECK_ONLY: ${{ parameters.VSCODE_CHECK_ONLY }}
|
|
VSCODE_CLI_ENV:
|
|
OPENSSL_LIB_DIR: $(Build.ArtifactStagingDirectory)/openssl/x64-osx/lib
|
|
OPENSSL_INCLUDE_DIR: $(Build.ArtifactStagingDirectory)/openssl/x64-osx/include
|
|
|
|
- ${{ if eq(parameters.VSCODE_BUILD_MACOS_ARM64, true) }}:
|
|
- template: ../cli/cli-compile.yml@self
|
|
parameters:
|
|
VSCODE_QUALITY: ${{ parameters.VSCODE_QUALITY }}
|
|
VSCODE_CLI_TARGET: aarch64-apple-darwin
|
|
VSCODE_CLI_ARTIFACT: unsigned_vscode_cli_darwin_arm64_cli
|
|
VSCODE_CHECK_ONLY: ${{ parameters.VSCODE_CHECK_ONLY }}
|
|
VSCODE_CLI_ENV:
|
|
OPENSSL_LIB_DIR: $(Build.ArtifactStagingDirectory)/openssl/arm64-osx/lib
|
|
OPENSSL_INCLUDE_DIR: $(Build.ArtifactStagingDirectory)/openssl/arm64-osx/include
|
|
|
|
- ${{ if not(parameters.VSCODE_CHECK_ONLY) }}:
|
|
- ${{ if eq(parameters.VSCODE_BUILD_MACOS, true) }}:
|
|
- task: 1ES.PublishPipelineArtifact@1
|
|
inputs:
|
|
targetPath: $(Build.ArtifactStagingDirectory)/unsigned_vscode_cli_darwin_x64_cli.zip
|
|
artifactName: unsigned_vscode_cli_darwin_x64_cli
|
|
sbomBuildDropPath: $(Build.ArtifactStagingDirectory)/cli
|
|
sbomPackageName: "VS Code macOS x64 CLI (unsigned)"
|
|
sbomPackageVersion: $(Build.SourceVersion)
|
|
displayName: Publish unsigned_vscode_cli_darwin_x64_cli artifact
|
|
|
|
- ${{ if eq(parameters.VSCODE_BUILD_MACOS_ARM64, true) }}:
|
|
- task: 1ES.PublishPipelineArtifact@1
|
|
inputs:
|
|
targetPath: $(Build.ArtifactStagingDirectory)/unsigned_vscode_cli_darwin_arm64_cli.zip
|
|
artifactName: unsigned_vscode_cli_darwin_arm64_cli
|
|
sbomBuildDropPath: $(Build.ArtifactStagingDirectory)/cli
|
|
sbomPackageName: "VS Code macOS arm64 CLI (unsigned)"
|
|
sbomPackageVersion: $(Build.SourceVersion)
|
|
displayName: Publish unsigned_vscode_cli_darwin_arm64_cli artifact
|