Update dependencies from https://github.com/dotnet/arcade build 20200824.23 (#8289)
[master] Update dependencies from dotnet/arcade - Updates: - Microsoft.DotNet.Build.Tasks.Installers: from 5.0.0-beta.20419.21 to 5.0.0-beta.20424.23 - Microsoft.DotNet.Arcade.Sdk: from 5.0.0-beta.20419.21 to 5.0.0-beta.20424.23
This commit is contained in:
parent
34651a6c6a
commit
e8e3c763bf
11 changed files with 71 additions and 62 deletions
|
@ -98,13 +98,13 @@
|
||||||
</Dependency>
|
</Dependency>
|
||||||
</ProductDependencies>
|
</ProductDependencies>
|
||||||
<ToolsetDependencies>
|
<ToolsetDependencies>
|
||||||
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="5.0.0-beta.20419.21">
|
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="5.0.0-beta.20424.23">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>56a95cc477558c1ccdf16d7abe962849ea970ba4</Sha>
|
<Sha>229645f3ad023a4aa2717d266cef5339dc3b5162</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.DotNet.Build.Tasks.Installers" Version="5.0.0-beta.20419.21">
|
<Dependency Name="Microsoft.DotNet.Build.Tasks.Installers" Version="5.0.0-beta.20424.23">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>56a95cc477558c1ccdf16d7abe962849ea970ba4</Sha>
|
<Sha>229645f3ad023a4aa2717d266cef5339dc3b5162</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
</ToolsetDependencies>
|
</ToolsetDependencies>
|
||||||
</Dependencies>
|
</Dependencies>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<!-- Dependency from https://github.com/dotnet/arcade -->
|
<!-- Dependency from https://github.com/dotnet/arcade -->
|
||||||
<MicrosoftDotNetBuildTasksInstallersPackageVersion>5.0.0-beta.20419.21</MicrosoftDotNetBuildTasksInstallersPackageVersion>
|
<MicrosoftDotNetBuildTasksInstallersPackageVersion>5.0.0-beta.20424.23</MicrosoftDotNetBuildTasksInstallersPackageVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<!-- Dependency from https://github.com/dotnet/winforms -->
|
<!-- Dependency from https://github.com/dotnet/winforms -->
|
||||||
|
|
|
@ -23,6 +23,8 @@ Param(
|
||||||
[switch][Alias('nobl')]$excludeCIBinarylog,
|
[switch][Alias('nobl')]$excludeCIBinarylog,
|
||||||
[switch] $ci,
|
[switch] $ci,
|
||||||
[switch] $prepareMachine,
|
[switch] $prepareMachine,
|
||||||
|
[string] $runtimeSourceFeed = '',
|
||||||
|
[string] $runtimeSourceFeedKey = '',
|
||||||
[switch] $help,
|
[switch] $help,
|
||||||
[Parameter(ValueFromRemainingArguments=$true)][String[]]$properties
|
[Parameter(ValueFromRemainingArguments=$true)][String[]]$properties
|
||||||
)
|
)
|
||||||
|
|
|
@ -76,9 +76,10 @@ projects=''
|
||||||
configuration='Debug'
|
configuration='Debug'
|
||||||
prepare_machine=false
|
prepare_machine=false
|
||||||
verbosity='minimal'
|
verbosity='minimal'
|
||||||
|
runtime_source_feed=''
|
||||||
|
runtime_source_feed_key=''
|
||||||
|
|
||||||
properties=''
|
properties=''
|
||||||
|
|
||||||
while [[ $# > 0 ]]; do
|
while [[ $# > 0 ]]; do
|
||||||
opt="$(echo "${1/#--/-}" | awk '{print tolower($0)}')"
|
opt="$(echo "${1/#--/-}" | awk '{print tolower($0)}')"
|
||||||
case "$opt" in
|
case "$opt" in
|
||||||
|
@ -151,6 +152,14 @@ while [[ $# > 0 ]]; do
|
||||||
node_reuse=$2
|
node_reuse=$2
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
-runtimesourcefeed)
|
||||||
|
runtime_source_feed=$2
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
-runtimesourcefeedkey)
|
||||||
|
runtime_source_feed_key=$2
|
||||||
|
shift
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
properties="$properties $1"
|
properties="$properties $1"
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -30,8 +30,6 @@ rm -rf $TIZEN_TMP_DIR
|
||||||
|
|
||||||
# Configure Tizen rootfs
|
# Configure Tizen rootfs
|
||||||
echo ">>Start configuring Tizen rootfs"
|
echo ">>Start configuring Tizen rootfs"
|
||||||
rm ./usr/lib/libunwind.so
|
|
||||||
ln -s libunwind.so.8 ./usr/lib/libunwind.so
|
|
||||||
ln -sfn asm-arm ./usr/include/asm
|
ln -sfn asm-arm ./usr/include/asm
|
||||||
patch -p1 < $__TIZEN_CROSSDIR/tizen.patch
|
patch -p1 < $__TIZEN_CROSSDIR/tizen.patch
|
||||||
echo "<<Finish configuring Tizen rootfs"
|
echo "<<Finish configuring Tizen rootfs"
|
||||||
|
|
|
@ -7,12 +7,3 @@ diff -u -r a/usr/lib/libc.so b/usr/lib/libc.so
|
||||||
OUTPUT_FORMAT(elf32-littlearm)
|
OUTPUT_FORMAT(elf32-littlearm)
|
||||||
-GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED ( /lib/ld-linux.so.3 ) )
|
-GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED ( /lib/ld-linux.so.3 ) )
|
||||||
+GROUP ( libc.so.6 libc_nonshared.a AS_NEEDED ( ld-linux.so.3 ) )
|
+GROUP ( libc.so.6 libc_nonshared.a AS_NEEDED ( ld-linux.so.3 ) )
|
||||||
diff -u -r a/usr/lib/libpthread.so b/usr/lib/libpthread.so
|
|
||||||
--- a/usr/lib/libpthread.so 2016-12-30 23:00:19.408951841 +0900
|
|
||||||
+++ b/usr/lib/libpthread.so 2016-12-30 23:00:39.068951801 +0900
|
|
||||||
@@ -2,4 +2,4 @@
|
|
||||||
Use the shared library, but some functions are only in
|
|
||||||
the static library, so try that secondarily. */
|
|
||||||
OUTPUT_FORMAT(elf32-littlearm)
|
|
||||||
-GROUP ( /lib/libpthread.so.0 /usr/lib/libpthread_nonshared.a )
|
|
||||||
+GROUP ( libpthread.so.0 libpthread_nonshared.a )
|
|
||||||
|
|
|
@ -46,10 +46,10 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(MonoDotnet)' == 'true' and '$(AGENT_OS)' == 'Windows_NT'">
|
<PropertyGroup Condition="'$(MonoDotnet)' == 'true' and '$(AGENT_OS)' == 'Windows_NT'">
|
||||||
<CoreRunArgument>--corerun %HELIX_CORRELATION_PAYLOAD%\dotnet-mono\shared\Microsoft.NETCore.App\5.0.0\corerun.exe</CoreRunArgument>
|
<CoreRunArgument>--corerun %HELIX_CORRELATION_PAYLOAD%\dotnet-mono\shared\Microsoft.NETCore.App\6.0.0\corerun.exe</CoreRunArgument>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(MonoDotnet)' == 'true' and '$(AGENT_OS)' != 'Windows_NT'">
|
<PropertyGroup Condition="'$(MonoDotnet)' == 'true' and '$(AGENT_OS)' != 'Windows_NT'">
|
||||||
<CoreRunArgument>--corerun $(BaseDirectory)/dotnet-mono/shared/Microsoft.NETCore.App/5.0.0/corerun</CoreRunArgument>
|
<CoreRunArgument>--corerun $(BaseDirectory)/dotnet-mono/shared/Microsoft.NETCore.App/6.0.0/corerun</CoreRunArgument>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(UseCoreRun)' == 'true'">
|
<PropertyGroup Condition="'$(UseCoreRun)' == 'true'">
|
||||||
|
|
|
@ -194,17 +194,18 @@ if [[ "$internal" == true ]]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$mono_dotnet" != "" ]]; then
|
if [[ "$mono_dotnet" != "" ]] && [[ "$monointerpreter" == "false" ]]; then
|
||||||
configurations="$configurations LLVM=$llvm MonoInterpreter=$monointerpreter MonoAOT=$monoaot"
|
configurations="$configurations LLVM=$llvm MonoInterpreter=$monointerpreter MonoAOT=$monoaot"
|
||||||
|
extra_benchmark_dotnet_arguments="$extra_benchmark_dotnet_arguments --category-exclusion-filter NoMono"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$wasm_runtime_loc" != "" ]]; then
|
if [[ "$wasm_runtime_loc" != "" ]]; then
|
||||||
configurations="CompilationMode=wasm RunKind=micro"
|
configurations="CompilationMode=wasm RunKind=micro"
|
||||||
extra_benchmark_dotnet_arguments="$extra_benchmark_dotnet_arguments --category-exclusion-filter NoInterpreter NoWASM"
|
extra_benchmark_dotnet_arguments="$extra_benchmark_dotnet_arguments --category-exclusion-filter NoInterpreter NoWASM NoMono"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$monointerpreter" == "true" ]]; then
|
if [[ "$mono_dotnet" != "" ]] && [[ "$monointerpreter" == "true" ]]; then
|
||||||
extra_benchmark_dotnet_arguments="$extra_benchmark_dotnet_arguments --category-exclusion-filter NoInterpreter"
|
extra_benchmark_dotnet_arguments="$extra_benchmark_dotnet_arguments --category-exclusion-filter NoInterpreter NoMono"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
common_setup_arguments="--channel master --queue $queue --build-number $build_number --build-configs $configurations --architecture $architecture"
|
common_setup_arguments="--channel master --queue $queue --build-number $build_number --build-configs $configurations --architecture $architecture"
|
||||||
|
|
|
@ -57,6 +57,11 @@ set-strictmode -version 2.0
|
||||||
$ErrorActionPreference = 'Stop'
|
$ErrorActionPreference = 'Stop'
|
||||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
||||||
|
|
||||||
|
# If specifies, provides an alternate path for getting .NET Core SDKs and Runtimes. This script will still try public sources first.
|
||||||
|
[string]$runtimeSourceFeed = if (Test-Path variable:runtimeSourceFeed) { $runtimeSourceFeed } else { $null }
|
||||||
|
# Base-64 encoded SAS token that has permission to storage container described by $runtimeSourceFeed
|
||||||
|
[string]$runtimeSourceFeedKey = if (Test-Path variable:runtimeSourceFeedKey) { $runtimeSourceFeedKey } else { $null }
|
||||||
|
|
||||||
function Create-Directory ([string[]] $path) {
|
function Create-Directory ([string[]] $path) {
|
||||||
New-Item -Path $path -Force -ItemType 'Directory' | Out-Null
|
New-Item -Path $path -Force -ItemType 'Directory' | Out-Null
|
||||||
}
|
}
|
||||||
|
@ -223,7 +228,7 @@ function GetDotNetInstallScript([string] $dotnetRoot) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function InstallDotNetSdk([string] $dotnetRoot, [string] $version, [string] $architecture = '') {
|
function InstallDotNetSdk([string] $dotnetRoot, [string] $version, [string] $architecture = '') {
|
||||||
InstallDotNet $dotnetRoot $version $architecture
|
InstallDotNet $dotnetRoot $version $architecture '' $false $runtimeSourceFeed $runtimeSourceFeedKey
|
||||||
}
|
}
|
||||||
|
|
||||||
function InstallDotNet([string] $dotnetRoot,
|
function InstallDotNet([string] $dotnetRoot,
|
||||||
|
@ -248,10 +253,8 @@ function InstallDotNet([string] $dotnetRoot,
|
||||||
& $installScript @installParameters
|
& $installScript @installParameters
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
Write-PipelineTelemetryError -Category 'InitializeToolset' -Message "Failed to install dotnet runtime '$runtime' from public location."
|
if ($runtimeSourceFeed -or $runtimeSourceFeedKey) {
|
||||||
|
Write-Host "Failed to install dotnet from public location. Trying from '$runtimeSourceFeed'"
|
||||||
# Only the runtime can be installed from a custom [private] location.
|
|
||||||
if ($runtime -and ($runtimeSourceFeed -or $runtimeSourceFeedKey)) {
|
|
||||||
if ($runtimeSourceFeed) { $installParameters.AzureFeed = $runtimeSourceFeed }
|
if ($runtimeSourceFeed) { $installParameters.AzureFeed = $runtimeSourceFeed }
|
||||||
|
|
||||||
if ($runtimeSourceFeedKey) {
|
if ($runtimeSourceFeedKey) {
|
||||||
|
@ -264,10 +267,11 @@ function InstallDotNet([string] $dotnetRoot,
|
||||||
& $installScript @installParameters
|
& $installScript @installParameters
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
Write-PipelineTelemetryError -Category 'InitializeToolset' -Message "Failed to install dotnet runtime '$runtime' from custom location '$runtimeSourceFeed'."
|
Write-PipelineTelemetryError -Category 'InitializeToolset' -Message "Failed to install dotnet from custom location '$runtimeSourceFeed'."
|
||||||
ExitWithExitCode 1
|
ExitWithExitCode 1
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Write-PipelineTelemetryError -Category 'InitializeToolset' -Message "Failed to install dotnet from public location."
|
||||||
ExitWithExitCode 1
|
ExitWithExitCode 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,6 +64,10 @@ else
|
||||||
use_global_nuget_cache=${use_global_nuget_cache:-true}
|
use_global_nuget_cache=${use_global_nuget_cache:-true}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Used when restoring .NET SDK from alternative feeds
|
||||||
|
runtime_source_feed=${runtime_source_feed:-''}
|
||||||
|
runtime_source_feed_key=${runtime_source_feed_key:-''}
|
||||||
|
|
||||||
# Resolve any symlinks in the given path.
|
# Resolve any symlinks in the given path.
|
||||||
function ResolvePath {
|
function ResolvePath {
|
||||||
local path=$1
|
local path=$1
|
||||||
|
@ -170,11 +174,11 @@ function InitializeDotNetCli {
|
||||||
function InstallDotNetSdk {
|
function InstallDotNetSdk {
|
||||||
local root=$1
|
local root=$1
|
||||||
local version=$2
|
local version=$2
|
||||||
local architecture=""
|
local architecture="unset"
|
||||||
if [[ $# == 3 ]]; then
|
if [[ $# -ge 3 ]]; then
|
||||||
architecture=$3
|
architecture=$3
|
||||||
fi
|
fi
|
||||||
InstallDotNet "$root" "$version" $architecture
|
InstallDotNet "$root" "$version" $architecture 'sdk' 'false' $runtime_source_feed $runtime_source_feed_key
|
||||||
}
|
}
|
||||||
|
|
||||||
function InstallDotNet {
|
function InstallDotNet {
|
||||||
|
@ -185,50 +189,50 @@ function InstallDotNet {
|
||||||
local install_script=$_GetDotNetInstallScript
|
local install_script=$_GetDotNetInstallScript
|
||||||
|
|
||||||
local archArg=''
|
local archArg=''
|
||||||
if [[ -n "${3:-}" ]]; then
|
if [[ -n "${3:-}" ]] && [ "$3" != 'unset' ]; then
|
||||||
archArg="--architecture $3"
|
archArg="--architecture $3"
|
||||||
fi
|
fi
|
||||||
local runtimeArg=''
|
local runtimeArg=''
|
||||||
if [[ -n "${4:-}" ]]; then
|
if [[ -n "${4:-}" ]] && [ "$4" != 'sdk' ]; then
|
||||||
runtimeArg="--runtime $4"
|
runtimeArg="--runtime $4"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local skipNonVersionedFilesArg=""
|
local skipNonVersionedFilesArg=""
|
||||||
if [[ "$#" -ge "5" ]]; then
|
if [[ "$#" -ge "5" ]] && [[ "$5" != 'false' ]]; then
|
||||||
skipNonVersionedFilesArg="--skip-non-versioned-files"
|
skipNonVersionedFilesArg="--skip-non-versioned-files"
|
||||||
fi
|
fi
|
||||||
bash "$install_script" --version $version --install-dir "$root" $archArg $runtimeArg $skipNonVersionedFilesArg || {
|
bash "$install_script" --version $version --install-dir "$root" $archArg $runtimeArg $skipNonVersionedFilesArg || {
|
||||||
local exit_code=$?
|
local exit_code=$?
|
||||||
Write-PipelineTelemetryError -category 'InitializeToolset' "Failed to install dotnet SDK from public location (exit code '$exit_code')."
|
echo "Failed to install dotnet SDK from public location (exit code '$exit_code')."
|
||||||
|
|
||||||
if [[ -n "$runtimeArg" ]]; then
|
local runtimeSourceFeed=''
|
||||||
local runtimeSourceFeed=''
|
if [[ -n "${6:-}" ]]; then
|
||||||
if [[ -n "${6:-}" ]]; then
|
runtimeSourceFeed="--azure-feed $6"
|
||||||
runtimeSourceFeed="--azure-feed $6"
|
fi
|
||||||
|
|
||||||
|
local runtimeSourceFeedKey=''
|
||||||
|
if [[ -n "${7:-}" ]]; then
|
||||||
|
# The 'base64' binary on alpine uses '-d' and doesn't support '--decode'
|
||||||
|
# '-d'. To work around this, do a simple detection and switch the parameter
|
||||||
|
# accordingly.
|
||||||
|
decodeArg="--decode"
|
||||||
|
if base64 --help 2>&1 | grep -q "BusyBox"; then
|
||||||
|
decodeArg="-d"
|
||||||
fi
|
fi
|
||||||
|
decodedFeedKey=`echo $7 | base64 $decodeArg`
|
||||||
|
runtimeSourceFeedKey="--feed-credential $decodedFeedKey"
|
||||||
|
fi
|
||||||
|
|
||||||
local runtimeSourceFeedKey=''
|
if [[ -n "$runtimeSourceFeed" || -n "$runtimeSourceFeedKey" ]]; then
|
||||||
if [[ -n "${7:-}" ]]; then
|
bash "$install_script" --version $version --install-dir "$root" $archArg $runtimeArg $skipNonVersionedFilesArg $runtimeSourceFeed $runtimeSourceFeedKey || {
|
||||||
# The 'base64' binary on alpine uses '-d' and doesn't support '--decode'
|
local exit_code=$?
|
||||||
# '-d'. To work around this, do a simple detection and switch the parameter
|
Write-PipelineTelemetryError -category 'InitializeToolset' "Failed to install dotnet SDK from custom location '$runtimeSourceFeed' (exit code '$exit_code')."
|
||||||
# accordingly.
|
|
||||||
decodeArg="--decode"
|
|
||||||
if base64 --help 2>&1 | grep -q "BusyBox"; then
|
|
||||||
decodeArg="-d"
|
|
||||||
fi
|
|
||||||
decodedFeedKey=`echo $7 | base64 $decodeArg`
|
|
||||||
runtimeSourceFeedKey="--feed-credential $decodedFeedKey"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -n "$runtimeSourceFeed" || -n "$runtimeSourceFeedKey" ]]; then
|
|
||||||
bash "$install_script" --version $version --install-dir "$root" $archArg $runtimeArg $skipNonVersionedFilesArg $runtimeSourceFeed $runtimeSourceFeedKey || {
|
|
||||||
local exit_code=$?
|
|
||||||
Write-PipelineTelemetryError -category 'InitializeToolset' "Failed to install dotnet SDK from custom location '$runtimeSourceFeed' (exit code '$exit_code')."
|
|
||||||
ExitWithExitCode $exit_code
|
|
||||||
}
|
|
||||||
else
|
|
||||||
ExitWithExitCode $exit_code
|
ExitWithExitCode $exit_code
|
||||||
|
}
|
||||||
|
else
|
||||||
|
if [[ $exit_code != 0 ]]; then
|
||||||
|
Write-PipelineTelemetryError -category 'InitializeToolset' "Failed to install dotnet SDK from public location (exit code '$exit_code')."
|
||||||
fi
|
fi
|
||||||
|
ExitWithExitCode $exit_code
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"msbuild-sdks": {
|
"msbuild-sdks": {
|
||||||
"Microsoft.DotNet.Arcade.Sdk": "5.0.0-beta.20419.21"
|
"Microsoft.DotNet.Arcade.Sdk": "5.0.0-beta.20424.23"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue