Update dependencies from https://github.com/dotnet/arcade build 20190501.6 (#1827)
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19251.6
This commit is contained in:
parent
a22daeeec9
commit
f32de5ce0c
8 changed files with 42 additions and 12 deletions
|
@ -72,9 +72,9 @@
|
||||||
</Dependency>
|
</Dependency>
|
||||||
</ProductDependencies>
|
</ProductDependencies>
|
||||||
<ToolsetDependencies>
|
<ToolsetDependencies>
|
||||||
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19230.6">
|
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19251.6">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>ac8d88df02d246d3147338fcfb03b1b93dc84b53</Sha>
|
<Sha>ea9b2530a1559dd6426730aba52fca1924db2b65</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
</ToolsetDependencies>
|
</ToolsetDependencies>
|
||||||
</Dependencies>
|
</Dependencies>
|
||||||
|
|
|
@ -122,6 +122,10 @@ try {
|
||||||
. $configureToolsetScript
|
. $configureToolsetScript
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($restore) {
|
||||||
|
InitializeNativeTools
|
||||||
|
}
|
||||||
|
|
||||||
Build
|
Build
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
|
|
|
@ -218,4 +218,8 @@ if [[ -n "${useInstalledDotNetCli:-}" ]]; then
|
||||||
use_installed_dotnet_cli="$useInstalledDotNetCli"
|
use_installed_dotnet_cli="$useInstalledDotNetCli"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "$restore" == true ]]; then
|
||||||
|
InitializeNativeTools
|
||||||
|
fi
|
||||||
|
|
||||||
Build
|
Build
|
||||||
|
|
|
@ -41,9 +41,13 @@ Param (
|
||||||
[switch] $Force = $False,
|
[switch] $Force = $False,
|
||||||
[int] $DownloadRetries = 5,
|
[int] $DownloadRetries = 5,
|
||||||
[int] $RetryWaitTimeInSeconds = 30,
|
[int] $RetryWaitTimeInSeconds = 30,
|
||||||
[string] $GlobalJsonFile = "$PSScriptRoot\..\..\global.json"
|
[string] $GlobalJsonFile
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (!$GlobalJsonFile) {
|
||||||
|
$GlobalJsonFile = Join-Path (Get-Item $PSScriptRoot).Parent.Parent.FullName "global.json"
|
||||||
|
}
|
||||||
|
|
||||||
Set-StrictMode -version 2.0
|
Set-StrictMode -version 2.0
|
||||||
$ErrorActionPreference="Stop"
|
$ErrorActionPreference="Stop"
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ clean=false
|
||||||
force=false
|
force=false
|
||||||
download_retries=5
|
download_retries=5
|
||||||
retry_wait_time_seconds=30
|
retry_wait_time_seconds=30
|
||||||
global_json_file="${scriptroot}/../../global.json"
|
global_json_file="$(dirname "$(dirname "${scriptroot}")")/global.json"
|
||||||
declare -A native_assets
|
declare -A native_assets
|
||||||
|
|
||||||
. $scriptroot/native/common-library.sh
|
. $scriptroot/native/common-library.sh
|
||||||
|
@ -71,6 +71,7 @@ function ReadGlobalJsonNativeTools {
|
||||||
local native_tools_list=$(echo $native_tools_section | awk -F"[{}]" '{print $2}')
|
local native_tools_list=$(echo $native_tools_section | awk -F"[{}]" '{print $2}')
|
||||||
native_tools_list=${native_tools_list//[\" ]/}
|
native_tools_list=${native_tools_list//[\" ]/}
|
||||||
native_tools_list=${native_tools_list//,/$'\n'}
|
native_tools_list=${native_tools_list//,/$'\n'}
|
||||||
|
native_tools_list="$(echo -e "${native_tools_list}" | tr -d '[:space:]')"
|
||||||
|
|
||||||
local old_IFS=$IFS
|
local old_IFS=$IFS
|
||||||
while read -r line; do
|
while read -r line; do
|
||||||
|
@ -116,8 +117,6 @@ else
|
||||||
installer_command+=" --clean"
|
installer_command+=" --clean"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Installing $tool version $tool_version"
|
|
||||||
echo "Executing '$installer_command'"
|
|
||||||
$installer_command
|
$installer_command
|
||||||
|
|
||||||
if [[ $? != 0 ]]; then
|
if [[ $? != 0 ]]; then
|
||||||
|
@ -127,19 +126,16 @@ else
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -z $clean ]]; then
|
if [[ $clean = true ]]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -d $install_bin ]]; then
|
if [[ -d $install_bin ]]; then
|
||||||
echo "Native tools are available from $install_bin"
|
echo "Native tools are available from $install_bin"
|
||||||
if [[ !-z BUILD_BUILDNUMBER ]]; then
|
echo "##vso[task.prependpath]$install_bin"
|
||||||
echo "##vso[task.prependpath]$install_bin"
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
echo "Native tools install directory does not exist, installation failed" >&2
|
echo "Native tools install directory does not exist, installation failed" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
|
|
@ -391,6 +391,16 @@ function GetSdkTaskProject([string]$taskName) {
|
||||||
return Join-Path (Split-Path (InitializeToolset) -Parent) "SdkTasks\$taskName.proj"
|
return Join-Path (Split-Path (InitializeToolset) -Parent) "SdkTasks\$taskName.proj"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function InitializeNativeTools() {
|
||||||
|
if (Get-Member -InputObject $GlobalJson -Name "native-tools") {
|
||||||
|
$nativeArgs=""
|
||||||
|
if ($ci) {
|
||||||
|
$nativeArgs = "-InstallDirectory $ToolsDir"
|
||||||
|
}
|
||||||
|
Invoke-Expression "& `"$PSScriptRoot/init-tools-native.ps1`" $nativeArgs"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function InitializeToolset() {
|
function InitializeToolset() {
|
||||||
if (Test-Path variable:global:_ToolsetBuildProj) {
|
if (Test-Path variable:global:_ToolsetBuildProj) {
|
||||||
return $global:_ToolsetBuildProj
|
return $global:_ToolsetBuildProj
|
||||||
|
|
|
@ -212,6 +212,17 @@ function GetNuGetPackageCachePath {
|
||||||
_GetNuGetPackageCachePath=$NUGET_PACKAGES
|
_GetNuGetPackageCachePath=$NUGET_PACKAGES
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function InitializeNativeTools() {
|
||||||
|
if grep -Fq "native-tools" $global_json_file
|
||||||
|
then
|
||||||
|
local nativeArgs=""
|
||||||
|
if [[ "$ci" == true ]]; then
|
||||||
|
nativeArgs="-InstallDirectory $tools_dir"
|
||||||
|
fi
|
||||||
|
"$_script_dir/init-tools-native.sh" $nativeArgs
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
function InitializeToolset {
|
function InitializeToolset {
|
||||||
if [[ -n "${_InitializeToolset:-}" ]]; then
|
if [[ -n "${_InitializeToolset:-}" ]]; then
|
||||||
return
|
return
|
||||||
|
@ -307,6 +318,7 @@ eng_root=`cd -P "$_script_dir/.." && pwd`
|
||||||
repo_root=`cd -P "$_script_dir/../.." && pwd`
|
repo_root=`cd -P "$_script_dir/../.." && pwd`
|
||||||
artifacts_dir="$repo_root/artifacts"
|
artifacts_dir="$repo_root/artifacts"
|
||||||
toolset_dir="$artifacts_dir/toolset"
|
toolset_dir="$artifacts_dir/toolset"
|
||||||
|
tools_dir="$repo_root/.tools"
|
||||||
log_dir="$artifacts_dir/log/$configuration"
|
log_dir="$artifacts_dir/log/$configuration"
|
||||||
temp_dir="$artifacts_dir/tmp/$configuration"
|
temp_dir="$artifacts_dir/tmp/$configuration"
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
"dotnet": "3.0.100-preview4-011223"
|
"dotnet": "3.0.100-preview4-011223"
|
||||||
},
|
},
|
||||||
"msbuild-sdks": {
|
"msbuild-sdks": {
|
||||||
"Microsoft.DotNet.Arcade.Sdk": "1.0.0-beta.19230.6"
|
"Microsoft.DotNet.Arcade.Sdk": "1.0.0-beta.19251.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue