Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
48f4109f
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
48f4109f
编写于
11月 25, 2020
作者:
J
João Moreno
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
unify win32 build templates
上级
e6d2bd32
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
17 addition
and
213 deletion
+17
-213
build/azure-pipelines/product-build.yml
build/azure-pipelines/product-build.yml
+1
-1
build/azure-pipelines/win32/product-build-win32-arm64.yml
build/azure-pipelines/win32/product-build-win32-arm64.yml
+0
-201
build/azure-pipelines/win32/product-build-win32.yml
build/azure-pipelines/win32/product-build-win32.yml
+16
-11
未找到文件。
build/azure-pipelines/product-build.yml
浏览文件 @
48f4109f
...
...
@@ -62,7 +62,7 @@ stages:
variables
:
VSCODE_ARCH
:
arm64
steps
:
-
template
:
win32/product-build-win32
-arm64
.yml
-
template
:
win32/product-build-win32.yml
-
stage
:
Linux
dependsOn
:
...
...
build/azure-pipelines/win32/product-build-win32-arm64.yml
已删除
100644 → 0
浏览文件 @
e6d2bd32
steps
:
-
powershell
:
|
mkdir .build -ea 0
"$env:BUILD_SOURCEVERSION" | Out-File -Encoding ascii -NoNewLine .build\commit
"$env:VSCODE_QUALITY" | Out-File -Encoding ascii -NoNewLine .build\quality
"$env:ENABLE_TERRAPIN" | Out-File -Encoding ascii -NoNewLine .build\terrapin
displayName
:
Prepare cache flag
-
task
:
1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
inputs
:
keyfile
:
"
build/.cachesalt,
.build/commit,
.build/quality,
.build/terrapin"
targetfolder
:
"
.build,
out-build,
out-vscode-min,
out-vscode-reh-min,
out-vscode-reh-web-min"
vstsFeed
:
"
npm-vscode"
platformIndependent
:
true
alias
:
"
Compilation"
-
powershell
:
|
$ErrorActionPreference = "Stop"
exit 1
displayName
:
Check RestoreCache
condition
:
and(succeeded(), ne(variables['CacheRestored-Compilation'], 'true'))
-
task
:
NodeTool@0
inputs
:
versionSpec
:
"
12.18.3"
-
task
:
geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@2
inputs
:
versionSpec
:
"
1.x"
-
task
:
UsePythonVersion@0
inputs
:
versionSpec
:
"
2.x"
addToPath
:
true
-
task
:
AzureKeyVault@1
displayName
:
"
Azure
Key
Vault:
Get
Secrets"
inputs
:
azureSubscription
:
"
vscode-builds-subscription"
KeyVaultName
:
vscode
-
powershell
:
|
. build/azure-pipelines/win32/exec.ps1
$ErrorActionPreference = "Stop"
"machine github.com`nlogin vscode`npassword $(github-distro-mixin-password)" | Out-File "$env:USERPROFILE\_netrc" -Encoding ASCII
exec { git config user.email "vscode@microsoft.com" }
exec { git config user.name "VSCode" }
mkdir .build -ea 0
"$(VSCODE_ARCH)" | Out-File -Encoding ascii -NoNewLine .build\arch
displayName
:
Prepare tooling
-
powershell
:
|
. build/azure-pipelines/win32/exec.ps1
$ErrorActionPreference = "Stop"
exec { git remote add distro "https://github.com/$(VSCODE_MIXIN_REPO).git" }
exec { git fetch distro }
exec { git merge $(node -p "require('./package.json').distro") }
displayName
:
Merge distro
-
task
:
1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
inputs
:
keyfile
:
"
.build/arch,
.build/terrapin,
build/.cachesalt,
.yarnrc,
remote/.yarnrc,
**/yarn.lock,
!**/node_modules/**/yarn.lock,
!**/.*/**/yarn.lock"
targetfolder
:
"
**/node_modules,
!**/node_modules/**/node_modules"
vstsFeed
:
"
npm-vscode"
-
script
:
|
npx https://aka.ms/enablesecurefeed standAlone
displayName
:
Switch to Terrapin packages
timeoutInMinutes
:
5
condition
:
and(succeeded(), ne(variables['CacheRestored'], 'true'), eq(variables['ENABLE_TERRAPIN'], 'true'))
-
powershell
:
|
. build/azure-pipelines/win32/exec.ps1
. build/azure-pipelines/win32/retry.ps1
$ErrorActionPreference = "Stop"
retry { exec { yarn --frozen-lockfile } }
env
:
npm_config_arch
:
$(VSCODE_ARCH)
CHILD_CONCURRENCY
:
1
displayName
:
Install dependencies
condition
:
and(succeeded(), ne(variables['CacheRestored'], 'true'))
-
task
:
1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
inputs
:
keyfile
:
"
.build/arch,
.build/terrapin,
build/.cachesalt,
.yarnrc,
remote/.yarnrc,
**/yarn.lock,
!**/node_modules/**/yarn.lock,
!**/.*/**/yarn.lock"
targetfolder
:
"
**/node_modules,
!**/node_modules/**/node_modules"
vstsFeed
:
"
npm-vscode"
condition
:
and(succeeded(), ne(variables['CacheRestored'], 'true'))
-
powershell
:
|
. build/azure-pipelines/win32/exec.ps1
$ErrorActionPreference = "Stop"
exec { yarn postinstall }
displayName
:
Run postinstall scripts
condition
:
and(succeeded(), eq(variables['CacheRestored'], 'true'))
-
powershell
:
|
. build/azure-pipelines/win32/exec.ps1
$ErrorActionPreference = "Stop"
exec { node build/azure-pipelines/mixin }
displayName
:
Mix in quality
-
powershell
:
|
. build/azure-pipelines/win32/exec.ps1
$ErrorActionPreference = "Stop"
$env:VSCODE_MIXIN_PASSWORD="$(github-distro-mixin-password)"
exec { yarn gulp "vscode-win32-$env:VSCODE_ARCH-min-ci" }
exec { yarn gulp "vscode-win32-$env:VSCODE_ARCH-code-helper" }
exec { yarn gulp "vscode-win32-$env:VSCODE_ARCH-inno-updater" }
displayName
:
Build
-
task
:
SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
inputs
:
ConnectedServiceName
:
"
ESRP
CodeSign"
FolderPath
:
"
$(agent.builddirectory)/VSCode-win32-$(VSCODE_ARCH)"
Pattern
:
"
*.dll,*.exe,*.node"
signConfigType
:
inlineSignParams
inlineOperation
:
|
[
{
"keyCode": "CP-230012",
"operationSetCode": "SigntoolSign",
"parameters": [
{
"parameterName": "OpusName",
"parameterValue": "VS Code"
},
{
"parameterName": "OpusInfo",
"parameterValue": "https://code.visualstudio.com/"
},
{
"parameterName": "Append",
"parameterValue": "/as"
},
{
"parameterName": "FileDigest",
"parameterValue": "/fd \"SHA256\""
},
{
"parameterName": "PageHash",
"parameterValue": "/NPH"
},
{
"parameterName": "TimeStamp",
"parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256"
}
],
"toolName": "sign",
"toolVersion": "1.0"
},
{
"keyCode": "CP-230012",
"operationSetCode": "SigntoolVerify",
"parameters": [
{
"parameterName": "VerifyAll",
"parameterValue": "/all"
}
],
"toolName": "sign",
"toolVersion": "1.0"
}
]
SessionTimeout
:
120
-
task
:
NuGetCommand@2
displayName
:
Install ESRPClient.exe
inputs
:
restoreSolution
:
'
build\azure-pipelines\win32\ESRPClient\packages.config'
feedsToUse
:
config
nugetConfigPath
:
'
build\azure-pipelines\win32\ESRPClient\NuGet.config'
externalFeedCredentials
:
3fc0b7f7-da09-4ae7-a9c8-d69824b1819b
restoreDirectory
:
packages
-
task
:
ESRPImportCertTask@1
displayName
:
Import ESRP Request Signing Certificate
inputs
:
ESRP
:
"
ESRP
CodeSign"
-
task
:
PowerShell@2
inputs
:
targetType
:
filePath
filePath
:
.\build\azure-pipelines\win32\import-esrp-auth-cert.ps1
arguments
:
"
$(ESRP-SSL-AADAuth)"
displayName
:
Import ESRP Auth Certificate
-
powershell
:
|
. build/azure-pipelines/win32/exec.ps1
$ErrorActionPreference = "Stop"
$env:AZURE_STORAGE_ACCESS_KEY_2 = "$(vscode-storage-key)"
$env:AZURE_DOCUMENTDB_MASTERKEY = "$(builds-docdb-key-readwrite)"
$env:VSCODE_MIXIN_PASSWORD="$(github-distro-mixin-password)"
.\build\azure-pipelines\win32\publish.ps1
displayName
:
Publish
-
task
:
ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
displayName
:
"
Component
Detection"
continueOnError
:
true
build/azure-pipelines/win32/product-build-win32.yml
浏览文件 @
48f4109f
...
...
@@ -4,6 +4,7 @@ steps:
"$env:BUILD_SOURCEVERSION" | Out-File -Encoding ascii -NoNewLine .build\commit
"$env:VSCODE_QUALITY" | Out-File -Encoding ascii -NoNewLine .build\quality
"$env:ENABLE_TERRAPIN" | Out-File -Encoding ascii -NoNewLine .build\terrapin
"$env:VSCODE_ARCH" | Out-File -Encoding ascii -NoNewLine .build\arch
displayName
:
Prepare cache flag
-
task
:
1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
...
...
@@ -46,9 +47,6 @@ steps:
exec { git config user.email "vscode@microsoft.com" }
exec { git config user.name "VSCode" }
mkdir .build -ea 0
"$(VSCODE_ARCH)" | Out-File -Encoding ascii -NoNewLine .build\arch
displayName
:
Prepare tooling
-
powershell
:
|
...
...
@@ -107,26 +105,33 @@ steps:
$ErrorActionPreference = "Stop"
$env:VSCODE_MIXIN_PASSWORD="$(github-distro-mixin-password)"
exec { yarn gulp "vscode-win32-$env:VSCODE_ARCH-min-ci" }
exec { yarn gulp "vscode-reh-win32-$env:VSCODE_ARCH-min-ci" }
exec { yarn gulp "vscode-reh-web-win32-$env:VSCODE_ARCH-min-ci" }
exec { yarn gulp "vscode-win32-$env:VSCODE_ARCH-code-helper" }
exec { yarn gulp "vscode-win32-$env:VSCODE_ARCH-inno-updater" }
displayName
:
Build
-
powershell
:
|
. build/azure-pipelines/win32/exec.ps1
$ErrorActionPreference = "Stop"
$env:VSCODE_MIXIN_PASSWORD="$(github-distro-mixin-password)"
exec { yarn gulp "vscode-reh-win32-$env:VSCODE_ARCH-min-ci" }
exec { yarn gulp "vscode-reh-web-win32-$env:VSCODE_ARCH-min-ci" }
displayName
:
Build Server
condition
:
and(succeeded(), ne(variables['VSCODE_ARCH'], 'arm64'))
-
powershell
:
|
. build/azure-pipelines/win32/exec.ps1
$ErrorActionPreference = "Stop"
exec { yarn electron $(VSCODE_ARCH) }
exec { .\scripts\test.bat --build --tfs "Unit Tests" }
displayName
:
Run unit tests (Electron)
condition
:
and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
condition
:
and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false')
, ne(variables['VSCODE_ARCH'], 'arm64')
)
-
powershell
:
|
. build/azure-pipelines/win32/exec.ps1
$ErrorActionPreference = "Stop"
exec { yarn test-browser --build --browser chromium --browser firefox --tfs "Browser Unit Tests" }
displayName
:
Run unit tests (Browser)
condition
:
and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
condition
:
and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false')
, ne(variables['VSCODE_ARCH'], 'arm64')
)
-
powershell
:
|
# Figure out the full absolute path of the product we just built
...
...
@@ -139,14 +144,14 @@ steps:
$AppNameShort = $AppProductJson.nameShort
exec { $env:INTEGRATION_TEST_ELECTRON_PATH = "$AppRoot\$AppNameShort.exe"; $env:VSCODE_REMOTE_SERVER_PATH = "$(agent.builddirectory)\vscode-reh-win32-$(VSCODE_ARCH)"; .\scripts\test-integration.bat --build --tfs "Integration Tests" }
displayName
:
Run integration tests (Electron)
condition
:
and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
condition
:
and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false')
, ne(variables['VSCODE_ARCH'], 'arm64')
)
-
powershell
:
|
. build/azure-pipelines/win32/exec.ps1
$ErrorActionPreference = "Stop"
exec { $env:VSCODE_REMOTE_SERVER_PATH = "$(agent.builddirectory)\vscode-reh-web-win32-$(VSCODE_ARCH)"; .\resources\server\test\test-web-integration.bat --browser firefox }
displayName
:
Run integration tests (Browser)
condition
:
and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
condition
:
and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false')
, ne(variables['VSCODE_ARCH'], 'arm64')
)
-
powershell
:
|
. build/azure-pipelines/win32/exec.ps1
...
...
@@ -156,7 +161,7 @@ steps:
$AppNameShort = $AppProductJson.nameShort
exec { $env:INTEGRATION_TEST_ELECTRON_PATH = "$AppRoot\$AppNameShort.exe"; $env:VSCODE_REMOTE_SERVER_PATH = "$(agent.builddirectory)\vscode-reh-win32-$(VSCODE_ARCH)"; .\resources\server\test\test-remote-integration.bat }
displayName
:
Run remote integration tests (Electron)
condition
:
and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false'))
condition
:
and(succeeded(), eq(variables['VSCODE_STEP_ON_IT'], 'false')
, ne(variables['VSCODE_ARCH'], 'arm64')
)
-
task
:
PublishPipelineArtifact@0
inputs
:
...
...
@@ -171,7 +176,7 @@ steps:
inputs
:
testResultsFiles
:
"
*-results.xml"
searchFolder
:
"
$(Build.ArtifactStagingDirectory)/test-results"
condition
:
succeededOrFailed(
)
condition
:
and(succeededOrFailed(), ne(variables['VSCODE_ARCH'], 'arm64')
)
-
task
:
SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
inputs
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录