[main] Update dependencies from dotnet/arcade (#15596)
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
This commit is contained in:
parent
ce42123fa2
commit
53beac08b4
8 changed files with 133 additions and 58 deletions
|
@ -195,18 +195,18 @@
|
||||||
</Dependency>
|
</Dependency>
|
||||||
</ProductDependencies>
|
</ProductDependencies>
|
||||||
<ToolsetDependencies>
|
<ToolsetDependencies>
|
||||||
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="8.0.0-beta.23106.4">
|
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="8.0.0-beta.23120.1">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>02980a654d20995c38eca6ceabf729c4c13412c4</Sha>
|
<Sha>c4a85adbff520f62bfade7a6132f471506c3d35a</Sha>
|
||||||
<SourceBuild RepoName="arcade" ManagedOnly="true" />
|
<SourceBuild RepoName="arcade" ManagedOnly="true" />
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.DotNet.CMake.Sdk" Version="8.0.0-beta.23106.4">
|
<Dependency Name="Microsoft.DotNet.CMake.Sdk" Version="8.0.0-beta.23120.1">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>02980a654d20995c38eca6ceabf729c4c13412c4</Sha>
|
<Sha>c4a85adbff520f62bfade7a6132f471506c3d35a</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.DotNet.Build.Tasks.Installers" Version="8.0.0-beta.23106.4">
|
<Dependency Name="Microsoft.DotNet.Build.Tasks.Installers" Version="8.0.0-beta.23120.1">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>02980a654d20995c38eca6ceabf729c4c13412c4</Sha>
|
<Sha>c4a85adbff520f62bfade7a6132f471506c3d35a</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.DotNet.Darc" Version="1.1.0-beta.23116.2">
|
<Dependency Name="Microsoft.DotNet.Darc" Version="1.1.0-beta.23116.2">
|
||||||
<Uri>https://github.com/dotnet/arcade-services</Uri>
|
<Uri>https://github.com/dotnet/arcade-services</Uri>
|
||||||
|
@ -225,14 +225,14 @@
|
||||||
<Sha>e0402855655756b9562138b327763e1c97d0b908</Sha>
|
<Sha>e0402855655756b9562138b327763e1c97d0b908</Sha>
|
||||||
<SourceBuildTarball RepoName="source-build-reference-packages" ManagedOnly="true" />
|
<SourceBuildTarball RepoName="source-build-reference-packages" ManagedOnly="true" />
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.SourceLink.GitHub" Version="1.2.0-beta-23105-01" CoherentParentDependency="Microsoft.DotNet.Arcade.Sdk">
|
<Dependency Name="Microsoft.SourceLink.GitHub" Version="1.2.0-beta-23117-02" CoherentParentDependency="Microsoft.DotNet.Arcade.Sdk">
|
||||||
<Uri>https://github.com/dotnet/sourcelink</Uri>
|
<Uri>https://github.com/dotnet/sourcelink</Uri>
|
||||||
<Sha>763c618bbc4cc6481d37d122dc0dd3c2cafbcd49</Sha>
|
<Sha>955e79b0b955a9f57078b2399a782fcde44a9261</Sha>
|
||||||
<SourceBuild RepoName="sourcelink" ManagedOnly="true" />
|
<SourceBuild RepoName="sourcelink" ManagedOnly="true" />
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.DotNet.XliffTasks" Version="1.0.0-beta.23104.1" CoherentParentDependency="Microsoft.DotNet.Arcade.Sdk">
|
<Dependency Name="Microsoft.DotNet.XliffTasks" Version="1.0.0-beta.23116.1" CoherentParentDependency="Microsoft.DotNet.Arcade.Sdk">
|
||||||
<Uri>https://github.com/dotnet/xliff-tasks</Uri>
|
<Uri>https://github.com/dotnet/xliff-tasks</Uri>
|
||||||
<Sha>3cb4fa02ba389a7f070a16c50227cba2e610b48d</Sha>
|
<Sha>69157952aba0f08738249af4454b045b553614c4</Sha>
|
||||||
<SourceBuild RepoName="xliff-tasks" ManagedOnly="true" />
|
<SourceBuild RepoName="xliff-tasks" ManagedOnly="true" />
|
||||||
</Dependency>
|
</Dependency>
|
||||||
</ToolsetDependencies>
|
</ToolsetDependencies>
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<!-- Dependency from https://github.com/dotnet/arcade -->
|
<!-- Dependency from https://github.com/dotnet/arcade -->
|
||||||
<MicrosoftDotNetBuildTasksInstallersPackageVersion>8.0.0-beta.23106.4</MicrosoftDotNetBuildTasksInstallersPackageVersion>
|
<MicrosoftDotNetBuildTasksInstallersPackageVersion>8.0.0-beta.23120.1</MicrosoftDotNetBuildTasksInstallersPackageVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<!-- Dependency from https://github.com/dotnet/arcade-services -->
|
<!-- Dependency from https://github.com/dotnet/arcade-services -->
|
||||||
|
|
|
@ -6,10 +6,11 @@ usage()
|
||||||
{
|
{
|
||||||
echo "Usage: $0 [BuildArch] [CodeName] [lldbx.y] [llvmx[.y]] [--skipunmount] --rootfsdir <directory>]"
|
echo "Usage: $0 [BuildArch] [CodeName] [lldbx.y] [llvmx[.y]] [--skipunmount] --rootfsdir <directory>]"
|
||||||
echo "BuildArch can be: arm(default), arm64, armel, armv6, ppc64le, riscv64, s390x, x64, x86"
|
echo "BuildArch can be: arm(default), arm64, armel, armv6, ppc64le, riscv64, s390x, x64, x86"
|
||||||
echo "CodeName - optional, Code name for Linux, can be: xenial(default), zesty, bionic, alpine, alpine3.13 or alpine3.14. If BuildArch is armel, LinuxCodeName is jessie(default) or tizen."
|
echo "CodeName - optional, Code name for Linux, can be: xenial(default), zesty, bionic, alpine"
|
||||||
echo " for FreeBSD can be: freebsd12, freebsd13"
|
echo " for alpine can be specified with version: alpineX.YY or alpineedge"
|
||||||
echo " for illumos can be: illumos"
|
echo " for FreeBSD can be: freebsd12, freebsd13"
|
||||||
echo " for Haiku can be: haiku."
|
echo " for illumos can be: illumos"
|
||||||
|
echo " for Haiku can be: haiku."
|
||||||
echo "lldbx.y - optional, LLDB version, can be: lldb3.9(default), lldb4.0, lldb5.0, lldb6.0 no-lldb. Ignored for alpine and FreeBSD"
|
echo "lldbx.y - optional, LLDB version, can be: lldb3.9(default), lldb4.0, lldb5.0, lldb6.0 no-lldb. Ignored for alpine and FreeBSD"
|
||||||
echo "llvmx[.y] - optional, LLVM version for LLVM related packages."
|
echo "llvmx[.y] - optional, LLVM version for LLVM related packages."
|
||||||
echo "--skipunmount - optional, will skip the unmount of rootfs folder."
|
echo "--skipunmount - optional, will skip the unmount of rootfs folder."
|
||||||
|
@ -145,35 +146,54 @@ while :; do
|
||||||
__Keyring="--keyring /usr/share/keyrings/raspbian-archive-keyring.gpg"
|
__Keyring="--keyring /usr/share/keyrings/raspbian-archive-keyring.gpg"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
ppc64le)
|
|
||||||
__BuildArch=ppc64le
|
|
||||||
__UbuntuArch=ppc64el
|
|
||||||
__UbuntuRepo="http://ports.ubuntu.com/ubuntu-ports/"
|
|
||||||
__UbuntuPackages="${__UbuntuPackages// libunwind8-dev/}"
|
|
||||||
__UbuntuPackages="${__UbuntuPackages// libomp-dev/}"
|
|
||||||
__UbuntuPackages="${__UbuntuPackages// libomp5/}"
|
|
||||||
unset __LLDB_Package
|
|
||||||
;;
|
|
||||||
riscv64)
|
riscv64)
|
||||||
__BuildArch=riscv64
|
__BuildArch=riscv64
|
||||||
|
__AlpineArch=riscv64
|
||||||
|
__AlpinePackages="${__AlpinePackages// lldb-dev/}"
|
||||||
|
__AlpinePackages="${__AlpinePackages// compiler-rt-static/}"
|
||||||
|
__QEMUArch=riscv64
|
||||||
__UbuntuArch=riscv64
|
__UbuntuArch=riscv64
|
||||||
__UbuntuRepo="http://deb.debian.org/debian-ports"
|
__UbuntuRepo="http://deb.debian.org/debian-ports"
|
||||||
__CodeName=sid
|
|
||||||
__UbuntuPackages="${__UbuntuPackages// libunwind8-dev/}"
|
__UbuntuPackages="${__UbuntuPackages// libunwind8-dev/}"
|
||||||
unset __LLDB_Package
|
unset __LLDB_Package
|
||||||
|
|
||||||
if [[ -e "/usr/share/keyrings/debian-ports-archive-keyring.gpg" ]]; then
|
if [[ -e "/usr/share/keyrings/debian-ports-archive-keyring.gpg" ]]; then
|
||||||
__Keyring="--keyring /usr/share/keyrings/debian-ports-archive-keyring.gpg --include=debian-ports-archive-keyring"
|
__Keyring="--keyring /usr/share/keyrings/debian-ports-archive-keyring.gpg --include=debian-ports-archive-keyring"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "$version" != "edge" && ( -z "$__AlpineVersion" || -z "$__AlpineMajorVersion" )]]; then
|
||||||
|
__AlpineVersion=edge # minimum version with APKINDEX.tar.gz (packages archive)
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
ppc64le)
|
||||||
|
__BuildArch=ppc64le
|
||||||
|
__AlpineArch=ppc64le
|
||||||
|
__QEMUArch=ppc64le
|
||||||
|
__UbuntuArch=ppc64el
|
||||||
|
__UbuntuRepo="http://ports.ubuntu.com/ubuntu-ports/"
|
||||||
|
__UbuntuPackages="${__UbuntuPackages// libunwind8-dev/}"
|
||||||
|
__UbuntuPackages="${__UbuntuPackages// libomp-dev/}"
|
||||||
|
__UbuntuPackages="${__UbuntuPackages// libomp5/}"
|
||||||
|
unset __LLDB_Package
|
||||||
|
|
||||||
|
if [[ "$version" != "edge" && ( -z "$__AlpineVersion" || -z "$__AlpineMajorVersion" )]]; then
|
||||||
|
__AlpineVersion=3.15 # minimum version that supports compiler-rt
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
s390x)
|
s390x)
|
||||||
__BuildArch=s390x
|
__BuildArch=s390x
|
||||||
|
__AlpineArch=s390x
|
||||||
|
__QEMUArch=s390x
|
||||||
__UbuntuArch=s390x
|
__UbuntuArch=s390x
|
||||||
__UbuntuRepo="http://ports.ubuntu.com/ubuntu-ports/"
|
__UbuntuRepo="http://ports.ubuntu.com/ubuntu-ports/"
|
||||||
__UbuntuPackages="${__UbuntuPackages// libunwind8-dev/}"
|
__UbuntuPackages="${__UbuntuPackages// libunwind8-dev/}"
|
||||||
__UbuntuPackages="${__UbuntuPackages// libomp-dev/}"
|
__UbuntuPackages="${__UbuntuPackages// libomp-dev/}"
|
||||||
__UbuntuPackages="${__UbuntuPackages// libomp5/}"
|
__UbuntuPackages="${__UbuntuPackages// libomp5/}"
|
||||||
unset __LLDB_Package
|
unset __LLDB_Package
|
||||||
|
|
||||||
|
if [[ "$version" != "edge" && ( -z "$__AlpineVersion" || -z "$__AlpineMajorVersion" )]]; then
|
||||||
|
__AlpineVersion=3.15 # minimum version that supports compiler-rt
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
x64)
|
x64)
|
||||||
__BuildArch=x64
|
__BuildArch=x64
|
||||||
|
@ -252,22 +272,53 @@ while :; do
|
||||||
__UbuntuRepo="http://ftp.debian.org/debian/"
|
__UbuntuRepo="http://ftp.debian.org/debian/"
|
||||||
__LLDB_Package="liblldb-6.0-dev"
|
__LLDB_Package="liblldb-6.0-dev"
|
||||||
;;
|
;;
|
||||||
|
bullseye) # Debian 11
|
||||||
|
__CodeName=bullseye
|
||||||
|
__UbuntuRepo="http://ftp.debian.org/debian/"
|
||||||
|
;;
|
||||||
|
sid) # Debian sid
|
||||||
|
__CodeName=sid
|
||||||
|
__UbuntuRepo="http://ftp.debian.org/debian/"
|
||||||
|
;;
|
||||||
tizen)
|
tizen)
|
||||||
__CodeName=
|
__CodeName=
|
||||||
__UbuntuRepo=
|
__UbuntuRepo=
|
||||||
__Tizen=tizen
|
__Tizen=tizen
|
||||||
;;
|
;;
|
||||||
alpine|alpine3.13)
|
alpine*)
|
||||||
__CodeName=alpine
|
__CodeName=alpine
|
||||||
__UbuntuRepo=
|
__UbuntuRepo=
|
||||||
__AlpineVersion=3.13
|
version="${lowerI/alpine/}"
|
||||||
__AlpinePackages+=" llvm10-libs"
|
|
||||||
;;
|
if [[ "$version" == "edge" ]]; then
|
||||||
alpine3.14)
|
__AlpineVersion=edge
|
||||||
__CodeName=alpine
|
else
|
||||||
__UbuntuRepo=
|
parts=(${version//./ })
|
||||||
__AlpineVersion=3.14
|
__AlpineMajorVersion="${parts[0]}"
|
||||||
__AlpinePackages+=" llvm11-libs"
|
__AlpineMinoVersion="${parts[1]}"
|
||||||
|
|
||||||
|
if [[ -z "$__AlpineVersion" ]]; then
|
||||||
|
__AlpineVersion="$__AlpineMajorVersion.$__AlpineMinoVersion"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
case "$__AlpineVersion" in
|
||||||
|
3.14) __AlpinePackages+=" llvm11-libs" ;;
|
||||||
|
3.15) __AlpinePackages+=" llvm12-libs" ;;
|
||||||
|
3.16) __AlpinePackages+=" llvm13-libs" ;;
|
||||||
|
3.17) __AlpinePackages+=" llvm15-libs" ;;
|
||||||
|
edge) __AlpineLlvmLibsLookup=1 ;;
|
||||||
|
*)
|
||||||
|
if [[ "$__AlpineArch" =~ "s390x|ppc64le" ]]; then
|
||||||
|
__AlpineVersion=3.15 # minimum version that supports compiler-rt
|
||||||
|
__AlpinePackages+=" llvm12-libs"
|
||||||
|
elif [[ "$__AlpineArch" == "riscv64" ]]; then
|
||||||
|
__AlpineLlvmLibsLookup=1
|
||||||
|
__AlpineVersion=edge # minimum version with APKINDEX.tar.gz (packages archive)
|
||||||
|
else
|
||||||
|
__AlpineVersion=3.13 # 3.13 to maximize compatibility
|
||||||
|
fi
|
||||||
|
esac
|
||||||
;;
|
;;
|
||||||
freebsd12)
|
freebsd12)
|
||||||
__CodeName=freebsd
|
__CodeName=freebsd
|
||||||
|
@ -341,18 +392,40 @@ mkdir -p "$__RootfsDir"
|
||||||
__RootfsDir="$( cd "$__RootfsDir" && pwd )"
|
__RootfsDir="$( cd "$__RootfsDir" && pwd )"
|
||||||
|
|
||||||
if [[ "$__CodeName" == "alpine" ]]; then
|
if [[ "$__CodeName" == "alpine" ]]; then
|
||||||
__ApkToolsVersion=2.9.1
|
__ApkToolsVersion=2.12.11
|
||||||
__ApkToolsDir="$(mktemp -d)"
|
__ApkToolsDir="$(mktemp -d)"
|
||||||
wget "https://github.com/alpinelinux/apk-tools/releases/download/v$__ApkToolsVersion/apk-tools-$__ApkToolsVersion-x86_64-linux.tar.gz" -P "$__ApkToolsDir"
|
|
||||||
tar -xf "$__ApkToolsDir/apk-tools-$__ApkToolsVersion-x86_64-linux.tar.gz" -C "$__ApkToolsDir"
|
wget "https://gitlab.alpinelinux.org/api/v4/projects/5/packages/generic//v$__ApkToolsVersion/x86_64/apk.static" -P "$__ApkToolsDir"
|
||||||
|
chmod +x "$__ApkToolsDir/apk.static"
|
||||||
|
|
||||||
mkdir -p "$__RootfsDir"/usr/bin
|
mkdir -p "$__RootfsDir"/usr/bin
|
||||||
cp -v "/usr/bin/qemu-$__QEMUArch-static" "$__RootfsDir/usr/bin"
|
cp -v "/usr/bin/qemu-$__QEMUArch-static" "$__RootfsDir/usr/bin"
|
||||||
|
|
||||||
"$__ApkToolsDir/apk-tools-$__ApkToolsVersion/apk" \
|
if [[ "$__AlpineVersion" == "edge" ]]; then
|
||||||
-X "http://dl-cdn.alpinelinux.org/alpine/v$__AlpineVersion/main" \
|
version=edge
|
||||||
-X "http://dl-cdn.alpinelinux.org/alpine/v$__AlpineVersion/community" \
|
else
|
||||||
-U --allow-untrusted --root "$__RootfsDir" --arch "$__AlpineArch" --initdb \
|
version="v$__AlpineVersion"
|
||||||
add $__AlpinePackages
|
fi
|
||||||
|
|
||||||
|
"$__ApkToolsDir/apk.static" \
|
||||||
|
-X "http://dl-cdn.alpinelinux.org/alpine/$version/main" \
|
||||||
|
-X "http://dl-cdn.alpinelinux.org/alpine/$version/community" \
|
||||||
|
-U --allow-untrusted --root "$__RootfsDir" --arch "$__AlpineArch" --initdb \
|
||||||
|
add $__AlpinePackages
|
||||||
|
|
||||||
|
if [[ "$__AlpineLlvmLibsLookup" == 1 ]]; then
|
||||||
|
"$__ApkToolsDir/apk.static" \
|
||||||
|
-X "http://dl-cdn.alpinelinux.org/alpine/$version/main" \
|
||||||
|
-X "http://dl-cdn.alpinelinux.org/alpine/$version/community" \
|
||||||
|
-U --allow-untrusted --root "$__RootfsDir" --arch "$__AlpineArch" \
|
||||||
|
search 'llvm*-libs' | sort | tail -1 | while IFS=- read name rest; do
|
||||||
|
"$__ApkToolsDir/apk.static" \
|
||||||
|
-X "http://dl-cdn.alpinelinux.org/alpine/$version/main" \
|
||||||
|
-X "http://dl-cdn.alpinelinux.org/alpine/$version/community" \
|
||||||
|
-U --allow-untrusted --root "$__RootfsDir" --arch "$__AlpineArch" \
|
||||||
|
add "$name-libs"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
rm -r "$__ApkToolsDir"
|
rm -r "$__ApkToolsDir"
|
||||||
elif [[ "$__CodeName" == "freebsd" ]]; then
|
elif [[ "$__CodeName" == "freebsd" ]]; then
|
||||||
|
|
|
@ -45,7 +45,7 @@ if (-not $wxlFiles) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$macosHtmlEnFiles = Get-ChildItem -Recurse -Path "$SourcesDirectory" | Where-Object { $_.FullName -Match "en\.lproj\\.+\.html" } # add installer HTML files
|
$macosHtmlEnFiles = Get-ChildItem -Recurse -Path "$SourcesDirectory" | Where-Object { $_.FullName -Match "en\.lproj\\.+\.html$" } # add installer HTML files
|
||||||
$macosHtmlFiles = @()
|
$macosHtmlFiles = @()
|
||||||
if ($macosHtmlEnFiles) {
|
if ($macosHtmlEnFiles) {
|
||||||
$macosHtmlEnFiles | ForEach-Object {
|
$macosHtmlEnFiles | ForEach-Object {
|
||||||
|
@ -148,12 +148,17 @@ $locJson = @{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$sourceFile = ($_.FullName | Resolve-Path -Relative)
|
$sourceFile = ($_.FullName | Resolve-Path -Relative)
|
||||||
|
$lciFile = $sourceFile + ".lci"
|
||||||
if ($continue) {
|
if ($continue) {
|
||||||
return @{
|
$result = @{
|
||||||
SourceFile = $sourceFile
|
SourceFile = $sourceFile
|
||||||
CopyOption = "LangIDOnPath"
|
CopyOption = "LangIDOnPath"
|
||||||
OutputPath = $outputPath
|
OutputPath = $outputPath
|
||||||
}
|
}
|
||||||
|
if (Test-Path $lciFile -PathType Leaf) {
|
||||||
|
$result["LciFile"] = $lciFile
|
||||||
|
}
|
||||||
|
return $result
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
|
@ -83,7 +83,8 @@ try {
|
||||||
Select-Object -Expand 'native-tools' -ErrorAction SilentlyContinue
|
Select-Object -Expand 'native-tools' -ErrorAction SilentlyContinue
|
||||||
if ($NativeTools) {
|
if ($NativeTools) {
|
||||||
if ($PathPromotion -eq $True) {
|
if ($PathPromotion -eq $True) {
|
||||||
if ($env:SYSTEM_TEAMPROJECT) { # check to see if we're in an Azure pipelines build
|
$ArcadeToolsDirectory = "$env:SYSTEMDRIVE\arcade-tools"
|
||||||
|
if (Test-Path $ArcadeToolsDirectory) { # if this directory exists, we should use native tools on machine
|
||||||
$NativeTools.PSObject.Properties | ForEach-Object {
|
$NativeTools.PSObject.Properties | ForEach-Object {
|
||||||
$ToolName = $_.Name
|
$ToolName = $_.Name
|
||||||
$ToolVersion = $_.Value
|
$ToolVersion = $_.Value
|
||||||
|
@ -93,11 +94,6 @@ try {
|
||||||
if ($ToolVersion -eq "latest") {
|
if ($ToolVersion -eq "latest") {
|
||||||
$ToolVersion = ""
|
$ToolVersion = ""
|
||||||
}
|
}
|
||||||
$ArcadeToolsDirectory = "C:\arcade-tools"
|
|
||||||
if (-not (Test-Path $ArcadeToolsDirectory)) {
|
|
||||||
Write-Error "Arcade tools directory '$ArcadeToolsDirectory' was not found; artifacts were not properly installed."
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
$ToolDirectories = (Get-ChildItem -Path "$ArcadeToolsDirectory" -Filter "$ToolName-$ToolVersion*" | Sort-Object -Descending)
|
$ToolDirectories = (Get-ChildItem -Path "$ArcadeToolsDirectory" -Filter "$ToolName-$ToolVersion*" | Sort-Object -Descending)
|
||||||
if ($ToolDirectories -eq $null) {
|
if ($ToolDirectories -eq $null) {
|
||||||
Write-Error "Unable to find directory for $ToolName $ToolVersion; please make sure the tool is installed on this image."
|
Write-Error "Unable to find directory for $ToolName $ToolVersion; please make sure the tool is installed on this image."
|
||||||
|
@ -125,6 +121,7 @@ try {
|
||||||
|
|
||||||
if ((Get-Command "$ToolName" -ErrorAction SilentlyContinue) -eq $null) {
|
if ((Get-Command "$ToolName" -ErrorAction SilentlyContinue) -eq $null) {
|
||||||
Write-PipelineTelemetryError -Category 'NativeToolsBootstrap' -Message "$ToolName not found on path. Please install $ToolName $ToolVersion before proceeding."
|
Write-PipelineTelemetryError -Category 'NativeToolsBootstrap' -Message "$ToolName not found on path. Please install $ToolName $ToolVersion before proceeding."
|
||||||
|
Write-PipelineTelemetryError -Category 'NativeToolsBootstrap' -Message "If this is running on a build machine, the arcade-tools directory was not found, which means there's an error with the image."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -134,7 +134,7 @@ jobs:
|
||||||
- ${{ if and(eq(parameters.runAsPublic, 'false'), eq(variables['System.TeamProject'], 'internal')) }}:
|
- ${{ if and(eq(parameters.runAsPublic, 'false'), eq(variables['System.TeamProject'], 'internal')) }}:
|
||||||
- task: NuGetAuthenticate@0
|
- task: NuGetAuthenticate@0
|
||||||
|
|
||||||
- ${{ if or(eq(parameters.artifacts.download, 'true'), ne(parameters.artifacts.download, '')) }}:
|
- ${{ if and(ne(parameters.artifacts.download, 'false'), ne(parameters.artifacts.download, '')) }}:
|
||||||
- task: DownloadPipelineArtifact@2
|
- task: DownloadPipelineArtifact@2
|
||||||
inputs:
|
inputs:
|
||||||
buildType: current
|
buildType: current
|
||||||
|
@ -171,7 +171,7 @@ jobs:
|
||||||
TeamName: $(_TeamName)
|
TeamName: $(_TeamName)
|
||||||
|
|
||||||
- ${{ if ne(parameters.artifacts.publish, '') }}:
|
- ${{ if ne(parameters.artifacts.publish, '') }}:
|
||||||
- ${{ if or(eq(parameters.artifacts.publish.artifacts, 'true'), ne(parameters.artifacts.publish.artifacts, '')) }}:
|
- ${{ if and(ne(parameters.artifacts.publish.artifacts, 'false'), ne(parameters.artifacts.publish.artifacts, '')) }}:
|
||||||
- task: CopyFiles@2
|
- task: CopyFiles@2
|
||||||
displayName: Gather binaries for publish to artifacts
|
displayName: Gather binaries for publish to artifacts
|
||||||
inputs:
|
inputs:
|
||||||
|
@ -192,7 +192,7 @@ jobs:
|
||||||
ArtifactName: ${{ coalesce(parameters.artifacts.publish.artifacts.name , 'Artifacts_$(Agent.Os)_$(_BuildConfig)') }}
|
ArtifactName: ${{ coalesce(parameters.artifacts.publish.artifacts.name , 'Artifacts_$(Agent.Os)_$(_BuildConfig)') }}
|
||||||
continueOnError: true
|
continueOnError: true
|
||||||
condition: always()
|
condition: always()
|
||||||
- ${{ if or(eq(parameters.artifacts.publish.logs, 'true'), ne(parameters.artifacts.publish.logs, '')) }}:
|
- ${{ if and(ne(parameters.artifacts.publish.logs, 'false'), ne(parameters.artifacts.publish.logs, '')) }}:
|
||||||
- publish: artifacts/log
|
- publish: artifacts/log
|
||||||
artifact: ${{ coalesce(parameters.artifacts.publish.logs.name, 'Logs_Build_$(Agent.Os)_$(_BuildConfig)') }}
|
artifact: ${{ coalesce(parameters.artifacts.publish.logs.name, 'Logs_Build_$(Agent.Os)_$(_BuildConfig)') }}
|
||||||
displayName: Publish logs
|
displayName: Publish logs
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
# Select a pool provider based off branch name. Anything with branch name containing 'release' must go into an -Svc pool,
|
# Select a pool provider based off branch name. Anything with branch name containing 'release' must go into an -Svc pool,
|
||||||
# otherwise it should go into the "normal" pools. This separates out the queueing and billing of released branches.
|
# otherwise it should go into the "normal" pools. This separates out the queueing and billing of released branches.
|
||||||
|
|
||||||
# Motivation:
|
# Motivation:
|
||||||
# Once a given branch of a repository's output has been officially "shipped" once, it is then considered to be COGS
|
# Once a given branch of a repository's output has been officially "shipped" once, it is then considered to be COGS
|
||||||
# (Cost of goods sold) and should be moved to a servicing pool provider. This allows both separation of queueing
|
# (Cost of goods sold) and should be moved to a servicing pool provider. This allows both separation of queueing
|
||||||
# (allowing release builds and main PR builds to not intefere with each other) and billing (required for COGS)
|
# (allowing release builds and main PR builds to not intefere with each other) and billing (required for COGS.
|
||||||
# Additionally, the pool provider name itself may be subject to change when the .NET Core Engineering Services
|
# Additionally, the pool provider name itself may be subject to change when the .NET Core Engineering Services
|
||||||
# team needs to move resources around and create new and potentially differently-named pools. Using this template
|
# team needs to move resources around and create new and potentially differently-named pools. Using this template
|
||||||
# file from an Arcade-ified repo helps guard against both having to update one's release/* branches and renaming.
|
# file from an Arcade-ified repo helps guard against both having to update one's release/* branches and renaming.
|
||||||
|
|
||||||
# How to use:
|
# How to use:
|
||||||
# This yaml assumes your shipped product branches use the naming convention "release/..." (which many do).
|
# This yaml assumes your shipped product branches use the naming convention "release/..." (which many do).
|
||||||
# If we find alternate naming conventions in broad usage these can be added to the condition below.
|
# If we find alternate naming conventions in broad usage it can be added to the condition below.
|
||||||
#
|
#
|
||||||
# First, import the template in an arcade-ified repo to pick up the variables, e.g.:
|
# First, import the template in an arcade-ified repo to pick up the variables, e.g.:
|
||||||
#
|
#
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"cmake": "3.21.0"
|
"cmake": "3.21.0"
|
||||||
},
|
},
|
||||||
"msbuild-sdks": {
|
"msbuild-sdks": {
|
||||||
"Microsoft.DotNet.Arcade.Sdk": "8.0.0-beta.23106.4",
|
"Microsoft.DotNet.Arcade.Sdk": "8.0.0-beta.23120.1",
|
||||||
"Microsoft.DotNet.CMake.Sdk": "8.0.0-beta.23106.4"
|
"Microsoft.DotNet.CMake.Sdk": "8.0.0-beta.23120.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue