Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
d981cf5b
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 搜索 >>
未验证
提交
d981cf5b
编写于
12月 17, 2020
作者:
J
João Moreno
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Revert "Revert "Merge branch 'joao/build/compile-artifact'""
This reverts commit
c8aaeb75
.
上级
d07422ec
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
57 addition
and
148 deletion
+57
-148
build/azure-pipelines/darwin/product-build-darwin.yml
build/azure-pipelines/darwin/product-build-darwin.yml
+7
-22
build/azure-pipelines/linux/product-build-alpine.yml
build/azure-pipelines/linux/product-build-alpine.yml
+7
-22
build/azure-pipelines/linux/product-build-linux.yml
build/azure-pipelines/linux/product-build-linux.yml
+7
-21
build/azure-pipelines/product-compile.yml
build/azure-pipelines/product-compile.yml
+20
-36
build/azure-pipelines/product-hygiene.yml
build/azure-pipelines/product-hygiene.yml
+2
-5
build/azure-pipelines/web/product-build-web.yml
build/azure-pipelines/web/product-build-web.yml
+7
-21
build/azure-pipelines/win32/product-build-win32.yml
build/azure-pipelines/win32/product-build-win32.yml
+7
-21
未找到文件。
build/azure-pipelines/darwin/product-build-darwin.yml
浏览文件 @
d981cf5b
steps
:
-
script
:
|
mkdir -p .build
echo -n $BUILD_SOURCEVERSION > .build/commit
echo -n $VSCODE_QUALITY > .build/quality
echo -n $ENABLE_TERRAPIN > .build/terrapin
displayName
:
Prepare compilation cache flags
-
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"
-
script
:
|
set -e
exit 1
displayName
:
Check RestoreCache
condition
:
and(succeeded(), ne(variables['CacheRestored-Compilation'], 'true'))
-
task
:
NodeTool@0
inputs
:
versionSpec
:
"
12.18.3"
...
...
@@ -34,9 +13,14 @@ steps:
azureSubscription
:
"
vscode-builds-subscription"
KeyVaultName
:
vscode
-
task
:
DownloadPipelineArtifact@2
inputs
:
artifact
:
CompilationOutput
path
:
$(System.DefaultWorkingDirectory)
displayName
:
Download compilation output
-
script
:
|
set -e
cat << EOF > ~/.netrc
machine github.com
login vscode
...
...
@@ -66,6 +50,7 @@ steps:
-
script
:
|
echo -n $(VSCODE_ARCH) > .build/arch
echo -n $ENABLE_TERRAPIN > .build/terrapin
displayName
:
Prepare yarn cache flags
-
task
:
1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
...
...
build/azure-pipelines/linux/product-build-alpine.yml
浏览文件 @
d981cf5b
steps
:
-
script
:
|
mkdir -p .build
echo -n $BUILD_SOURCEVERSION > .build/commit
echo -n $VSCODE_QUALITY > .build/quality
echo -n $ENABLE_TERRAPIN > .build/terrapin
displayName
:
Prepare compilation cache flags
-
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"
-
script
:
|
set -e
exit 1
displayName
:
Check RestoreCache
condition
:
and(succeeded(), ne(variables['CacheRestored-Compilation'], 'true'))
-
task
:
NodeTool@0
inputs
:
versionSpec
:
"
12.18.3"
...
...
@@ -34,6 +13,12 @@ steps:
azureSubscription
:
"
vscode-builds-subscription"
KeyVaultName
:
vscode
-
task
:
DownloadPipelineArtifact@2
inputs
:
artifact
:
CompilationOutput
path
:
$(System.DefaultWorkingDirectory)
displayName
:
Download compilation output
-
task
:
Docker@1
displayName
:
"
Pull
image"
inputs
:
...
...
@@ -45,7 +30,6 @@ steps:
-
script
:
|
set -e
cat << EOF > ~/.netrc
machine github.com
login vscode
...
...
@@ -69,6 +53,7 @@ steps:
-
script
:
|
echo -n "alpine" > .build/arch
echo -n $ENABLE_TERRAPIN > .build/terrapin
displayName
:
Prepare yarn cache flags
-
task
:
1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
...
...
build/azure-pipelines/linux/product-build-linux.yml
浏览文件 @
d981cf5b
steps
:
-
script
:
|
mkdir -p .build
echo -n $BUILD_SOURCEVERSION > .build/commit
echo -n $VSCODE_QUALITY > .build/quality
echo -n $ENABLE_TERRAPIN > .build/terrapin
displayName
:
Prepare compilation cache flags
-
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"
-
script
:
|
set -e
exit 1
displayName
:
Check RestoreCache
condition
:
and(succeeded(), ne(variables['CacheRestored-Compilation'], 'true'))
-
task
:
NodeTool@0
inputs
:
versionSpec
:
"
12.18.3"
...
...
@@ -34,6 +13,12 @@ steps:
azureSubscription
:
"
vscode-builds-subscription"
KeyVaultName
:
vscode
-
task
:
DownloadPipelineArtifact@2
inputs
:
artifact
:
CompilationOutput
path
:
$(System.DefaultWorkingDirectory)
displayName
:
Download compilation output
-
script
:
|
set -e
cat << EOF > ~/.netrc
...
...
@@ -59,6 +44,7 @@ steps:
-
script
:
|
echo -n $(VSCODE_ARCH) > .build/arch
echo -n $ENABLE_TERRAPIN > .build/terrapin
displayName
:
Prepare yarn cache flags
-
task
:
1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
...
...
build/azure-pipelines/product-compile.yml
浏览文件 @
d981cf5b
steps
:
-
script
:
|
mkdir -p .build
echo -n $BUILD_SOURCEVERSION > .build/commit
echo -n $VSCODE_QUALITY > .build/quality
echo -n $ENABLE_TERRAPIN > .build/terrapin
displayName
:
Prepare compilation 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"
dryRun
:
true
-
task
:
NodeTool@0
inputs
:
versionSpec
:
"
12.18.3"
condition
:
and(succeeded(), ne(variables['CacheExists-Compilation'], 'true'))
-
task
:
geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@2
inputs
:
versionSpec
:
"
1.x"
condition
:
and(succeeded(), ne(variables['CacheExists-Compilation'], 'true'))
-
task
:
AzureKeyVault@1
displayName
:
"
Azure
Key
Vault:
Get
Secrets"
inputs
:
azureSubscription
:
"
vscode-builds-subscription"
KeyVaultName
:
vscode
condition
:
and(succeeded(), ne(variables['CacheExists-Compilation'], 'true'))
-
script
:
|
set -e
...
...
@@ -43,22 +24,22 @@ steps:
git config user.email "vscode@microsoft.com"
git config user.name "VSCode"
displayName
:
Prepare tooling
condition
:
and(succeeded(), ne(variables['CacheExists-Compilation'], 'true'))
-
script
:
|
set -e
git pull --no-rebase https://github.com/$(VSCODE_MIXIN_REPO).git $(node -p "require('./package.json').distro")
displayName
:
Merge distro
condition
:
and(succeeded(), ne(variables['CacheExists-Compilation'], 'true'))
-
script
:
|
npx https://aka.ms/enablesecurefeed standAlone
displayName
:
Switch to Terrapin packages
timeoutInMinutes
:
5
condition
:
and(succeeded(),
ne(variables['CacheExists-Compilation'], 'true'),
eq(variables['ENABLE_TERRAPIN'], 'true'))
condition
:
and(succeeded(), eq(variables['ENABLE_TERRAPIN'], 'true'))
-
script
:
|
mkdir -p .build
echo -n $(VSCODE_ARCH) > .build/arch
echo -n $ENABLE_TERRAPIN > .build/terrapin
displayName
:
Prepare yarn cache flags
-
task
:
1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
...
...
@@ -66,7 +47,6 @@ steps:
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['CacheExists-Compilation'], 'true'))
-
script
:
|
set -e
...
...
@@ -95,21 +75,20 @@ steps:
ELECTRON_SKIP_BINARY_DOWNLOAD
:
1
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD
:
1
displayName
:
Install dependencies
condition
:
and(succeeded(), ne(variables['Cache
Exists-Compilation'], 'true'), ne(variables['Cache
Restored'], 'true'))
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['Cache
Exists-Compilation'], 'true'), ne(variables['Cache
Restored'], 'true'))
condition
:
and(succeeded(), ne(variables['CacheRestored'], 'true'))
# Mixin must run before optimize, because the CSS loader will inline small SVGs
-
script
:
|
set -e
node build/azure-pipelines/mixin
displayName
:
Mix in quality
condition
:
and(succeeded(), ne(variables['CacheExists-Compilation'], 'true'))
-
script
:
|
set -e
...
...
@@ -119,14 +98,13 @@ steps:
yarn gulp minify-vscode-reh
yarn gulp minify-vscode-reh-web
displayName
:
Compile
condition
:
and(succeeded(), ne(variables['CacheExists-Compilation'], 'true'))
-
script
:
|
set -e
AZURE_STORAGE_ACCESS_KEY="$(ticino-storage-key)" \
node build/azure-pipelines/upload-sourcemaps
displayName
:
Upload sourcemaps
condition
:
and(succeeded(), ne(variables['
CacheExists-Compilation'], 'true'), ne(variables['
VSCODE_PUBLISH'], 'false'))
condition
:
and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false'))
-
script
:
|
set -e
...
...
@@ -134,13 +112,19 @@ steps:
AZURE_DOCUMENTDB_MASTERKEY="$(builds-docdb-key-readwrite)" \
node build/azure-pipelines/common/createBuild.js $VERSION
displayName
:
Create build
condition
:
and(succeeded(), ne(variables['
CacheExists-Compilation'], 'true'), ne(variables['
VSCODE_PUBLISH'], 'false'))
condition
:
and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false'))
-
task
:
1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1
-
script
:
|
set -e
cat << EOF > .artifactignore
**/*
!.build/**
!out-*/**
EOF
displayName
:
Prepare .artifactignore
-
task
:
PublishPipelineArtifact@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"
condition
:
and(succeeded(), ne(variables['CacheExists-Compilation'], 'true'))
targetPath
:
$(System.DefaultWorkingDirectory)
artifactName
:
CompilationOutput
displayName
:
Publish compilation output
build/azure-pipelines/product-hygiene.yml
浏览文件 @
d981cf5b
steps
:
-
script
:
|
mkdir -p .build
echo -n $ENABLE_TERRAPIN > .build/terrapin
displayName
:
Prepare compilation cache flag
-
task
:
NodeTool@0
inputs
:
versionSpec
:
"
12.18.3"
...
...
@@ -36,7 +31,9 @@ steps:
displayName
:
Merge distro
-
script
:
|
mkdir -p .build
echo -n $(VSCODE_ARCH) > .build/arch
echo -n $ENABLE_TERRAPIN > .build/terrapin
displayName
:
Prepare yarn cache flags
-
task
:
1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
...
...
build/azure-pipelines/web/product-build-web.yml
浏览文件 @
d981cf5b
steps
:
-
script
:
|
mkdir -p .build
echo -n $BUILD_SOURCEVERSION > .build/commit
echo -n $VSCODE_QUALITY > .build/quality
echo -n $ENABLE_TERRAPIN > .build/terrapin
displayName
:
Prepare compilation 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"
-
script
:
|
set -e
exit 1
displayName
:
Check RestoreCache
condition
:
and(succeeded(), ne(variables['CacheRestored-Compilation'], 'true'))
-
task
:
NodeTool@0
inputs
:
versionSpec
:
"
12.18.3"
...
...
@@ -34,6 +13,12 @@ steps:
azureSubscription
:
"
vscode-builds-subscription"
KeyVaultName
:
vscode
-
task
:
DownloadPipelineArtifact@2
inputs
:
artifact
:
CompilationOutput
path
:
$(System.DefaultWorkingDirectory)
displayName
:
Download compilation output
-
script
:
|
set -e
cat << EOF > ~/.netrc
...
...
@@ -59,6 +44,7 @@ steps:
-
script
:
|
echo -n "web" > .build/arch
echo -n $ENABLE_TERRAPIN > .build/terrapin
displayName
:
Prepare yarn cache flag
-
task
:
1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
...
...
build/azure-pipelines/win32/product-build-win32.yml
浏览文件 @
d981cf5b
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 compilation cache flags
-
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"
...
...
@@ -39,6 +18,12 @@ steps:
azureSubscription
:
"
vscode-builds-subscription"
KeyVaultName
:
vscode
-
task
:
DownloadPipelineArtifact@2
inputs
:
artifact
:
CompilationOutput
path
:
$(System.DefaultWorkingDirectory)
displayName
:
Download compilation output
-
powershell
:
|
. build/azure-pipelines/win32/exec.ps1
$ErrorActionPreference = "Stop"
...
...
@@ -62,6 +47,7 @@ steps:
-
powershell
:
|
"$(VSCODE_ARCH)" | Out-File -Encoding ascii -NoNewLine .build\arch
"$env:ENABLE_TERRAPIN" | Out-File -Encoding ascii -NoNewLine .build\terrapin
displayName
:
Prepare yarn cache flags
-
task
:
1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录