Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
dotNET Platform
runtime
提交
53b64e8b
R
runtime
项目概览
dotNET Platform
/
runtime
12 个月 前同步成功
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
runtime
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
53b64e8b
编写于
11月 25, 2019
作者:
V
Viktor Hofer
提交者:
GitHub
11月 25, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Allow project builds from script (#201)
* Allow project builds from script * Fix installer builds
上级
27a02c5b
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
33 addition
and
6 deletion
+33
-6
eng/build.ps1
eng/build.ps1
+16
-1
eng/build.sh
eng/build.sh
+14
-2
eng/pipelines/installer/jobs/bash-build.yml
eng/pipelines/installer/jobs/bash-build.yml
+1
-1
eng/pipelines/installer/jobs/osx-build.yml
eng/pipelines/installer/jobs/osx-build.yml
+1
-1
eng/pipelines/installer/jobs/windows-build.yml
eng/pipelines/installer/jobs/windows-build.yml
+1
-1
未找到文件。
eng/build.ps1
浏览文件 @
53b64e8b
...
...
@@ -94,10 +94,25 @@ if ($null -ne $properties -and $actionPassedIn -ne $true) {
$actionPassedIn
=
@(
Compare-Object
-ReferenceObject
$properties
-DifferenceObject
$actions
.ForEach(
{
"-"
+
$_
})
-ExcludeDifferent
-IncludeEqual
)
.
Length
-ne
0
}
if
(
!
$actionPassedIn
-or
$subsetCategory
-ne
"libraries"
)
{
if
(
!
$actionPassedIn
)
{
$arguments
=
"-restore -build"
}
$possibleDirToBuild
=
if
(
$properties
.
Length
-gt
0
)
{
$properties
[
0
];
}
else
{
$null
}
if
(
$null
-ne
$possibleDirToBuild
-and
$subsetCategory
-eq
"libraries"
)
{
$dtb
=
$possibleDirToBuild
.
TrimEnd
(
'\'
)
if
(
Test-Path
$dtb
)
{
$properties
[
0
]
=
"/p:DirectoryToBuild=
$(
Resolve-Path
$dtb
)
"
}
else {
$dtb
= Join-Path "
$PSSCriptRoot
\..\src\libraries
"
$dtb
if (Test-Path
$dtb
) {
$properties
[0] = "
/p:DirectoryToBuild
=
$
(
Resolve-Path
$dtb
)
"
}
}
}
foreach (
$argument
in
$PSBoundParameters
.Keys)
{
switch(
$argument
)
...
...
eng/build.sh
浏览文件 @
53b64e8b
...
...
@@ -52,9 +52,10 @@ extraargs=''
build
=
false
buildtests
=
false
subsetCategory
=
''
checkedPossibleDirectoryToBuild
=
false
# Check if an action is passed in
declare
-a
actions
=(
"r"
"restore"
"b"
"build"
"
rebuild"
"t"
"test"
"buildtests
"
)
declare
-a
actions
=(
"r"
"restore"
"b"
"build"
"
buildtests"
"rebuild"
"t"
"test"
"pack"
"sign"
"publish"
"clean
"
)
actInt
=(
$(
comm
-12
<
(
printf
'%s\n'
"
${
actions
[@]/#/-
}
"
|
sort
)
<
(
printf
'%s\n'
"
${
@/#--/-
}
"
|
sort
)
)
)
while
[[
$#
>
0
]]
;
do
...
...
@@ -118,6 +119,17 @@ while [[ $# > 0 ]]; do
;;
*
)
ea
=
$1
if
[[
$checkedPossibleDirectoryToBuild
==
false
]]
&&
[[
$subsetCategory
==
"libraries"
]]
;
then
checkedPossibleDirectoryToBuild
=
true
if
[[
-d
"
$1
"
]]
;
then
ea
=
"/p:DirectoryToBuild=
$1
"
elif
[[
-d
"
$scriptroot
/../src/libraries/
$1
"
]]
;
then
ea
=
"/p:DirectoryToBuild=
$scriptroot
/../src/libraries/
$1
"
fi
fi
extraargs
=
"
$extraargs
$ea
"
shift
1
;;
...
...
@@ -132,7 +144,7 @@ if [[ "$buildtests" == true ]]; then
fi
fi
if
[
${#
actInt
[@]
}
-eq
0
]
||
[
"
$subsetCategory
"
!=
"libraries"
]
;
then
if
[
${#
actInt
[@]
}
-eq
0
]
;
then
arguments
=
"-restore -build
$arguments
"
fi
...
...
eng/pipelines/installer/jobs/bash-build.yml
浏览文件 @
53b64e8b
...
...
@@ -66,7 +66,7 @@ jobs:
# parameter is empty, AzDO replaces it with empty space without chomping the extra newline.
# This causes a newline in the arg string that causes failure.
BuildArguments
:
>-
--ci --test
--
restore --build --
ci --test
/p:CrossBuild=${{ parameters.crossBuild }}
/p:DisableCrossgen=${{ parameters.disableCrossgen }}
/p:PortableBuild=${{ parameters.portableBuild }}
...
...
eng/pipelines/installer/jobs/osx-build.yml
浏览文件 @
53b64e8b
...
...
@@ -26,7 +26,7 @@ jobs:
-
task
:
NuGetAuthenticate@0
-
script
:
>-
$(Build.SourcesDirectory)/$(buildScriptFileName).sh --ci --test
$(Build.SourcesDirectory)/$(buildScriptFileName).sh --
restore --build --
ci --test
/p:OfficialBuildId=$(OfficialBuildId)
/p:StripSymbols=true
$(CommonMSBuildArgs)
...
...
eng/pipelines/installer/jobs/windows-build.yml
浏览文件 @
53b64e8b
...
...
@@ -58,7 +58,7 @@ jobs:
displayName
:
Clear NuGet http cache (if exists)
-
script
:
>-
$(buildScriptFileName).cmd -ci -test
$(buildScriptFileName).cmd -
restore -build -
ci -test
$(CommonMSBuildArgs)
$(MsbuildSigningArguments)
displayName
:
Build
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录