Skip to content

Commit 2b60d82

Browse files
Update dependencies from https://github.com/dotnet/arcade build 20241222.1 (#110907)
Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.TargetFramework , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.GenAPI , Microsoft.DotNet.GenFacades , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.XliffTasks , Microsoft.DotNet.XUnitAssert , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.XUnitExtensions From Version 10.0.0-beta.24617.3 -> To Version 10.0.0-beta.24622.1 Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
1 parent f3d43ef commit 2b60d82

File tree

7 files changed

+136
-87
lines changed

7 files changed

+136
-87
lines changed

eng/Version.Details.xml

+42-42
Original file line numberDiff line numberDiff line change
@@ -84,87 +84,87 @@
8484
</Dependency>
8585
</ProductDependencies>
8686
<ToolsetDependencies>
87-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="10.0.0-beta.24617.3">
87+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="10.0.0-beta.24622.1">
8888
<Uri>https://github.com/dotnet/arcade</Uri>
89-
<Sha>d2e22a897257b60f6b528bceba444274d805193f</Sha>
89+
<Sha>8589bd2a216025d753b5f107081bfa28a2d51bb8</Sha>
9090
</Dependency>
9191
<!-- Intermediate is necessary for source build. -->
92-
<Dependency Name="Microsoft.SourceBuild.Intermediate.arcade" Version="10.0.0-beta.24617.3">
92+
<Dependency Name="Microsoft.SourceBuild.Intermediate.arcade" Version="10.0.0-beta.24622.1">
9393
<Uri>https://github.com/dotnet/arcade</Uri>
94-
<Sha>d2e22a897257b60f6b528bceba444274d805193f</Sha>
94+
<Sha>8589bd2a216025d753b5f107081bfa28a2d51bb8</Sha>
9595
<SourceBuild RepoName="arcade" ManagedOnly="true" />
9696
</Dependency>
97-
<Dependency Name="Microsoft.DotNet.XliffTasks" Version="10.0.0-beta.24617.3">
97+
<Dependency Name="Microsoft.DotNet.XliffTasks" Version="10.0.0-beta.24622.1">
9898
<Uri>https://github.com/dotnet/arcade</Uri>
99-
<Sha>d2e22a897257b60f6b528bceba444274d805193f</Sha>
99+
<Sha>8589bd2a216025d753b5f107081bfa28a2d51bb8</Sha>
100100
</Dependency>
101-
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="10.0.0-beta.24617.3">
101+
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="10.0.0-beta.24622.1">
102102
<Uri>https://github.com/dotnet/arcade</Uri>
103-
<Sha>d2e22a897257b60f6b528bceba444274d805193f</Sha>
103+
<Sha>8589bd2a216025d753b5f107081bfa28a2d51bb8</Sha>
104104
</Dependency>
105-
<Dependency Name="Microsoft.DotNet.GenAPI" Version="10.0.0-beta.24617.3">
105+
<Dependency Name="Microsoft.DotNet.GenAPI" Version="10.0.0-beta.24622.1">
106106
<Uri>https://github.com/dotnet/arcade</Uri>
107-
<Sha>d2e22a897257b60f6b528bceba444274d805193f</Sha>
107+
<Sha>8589bd2a216025d753b5f107081bfa28a2d51bb8</Sha>
108108
</Dependency>
109-
<Dependency Name="Microsoft.DotNet.GenFacades" Version="10.0.0-beta.24617.3">
109+
<Dependency Name="Microsoft.DotNet.GenFacades" Version="10.0.0-beta.24622.1">
110110
<Uri>https://github.com/dotnet/arcade</Uri>
111-
<Sha>d2e22a897257b60f6b528bceba444274d805193f</Sha>
111+
<Sha>8589bd2a216025d753b5f107081bfa28a2d51bb8</Sha>
112112
</Dependency>
113-
<Dependency Name="Microsoft.DotNet.XUnitAssert" Version="2.9.2-beta.24617.3">
113+
<Dependency Name="Microsoft.DotNet.XUnitAssert" Version="2.9.2-beta.24622.1">
114114
<Uri>https://github.com/dotnet/arcade</Uri>
115-
<Sha>d2e22a897257b60f6b528bceba444274d805193f</Sha>
115+
<Sha>8589bd2a216025d753b5f107081bfa28a2d51bb8</Sha>
116116
</Dependency>
117-
<Dependency Name="Microsoft.DotNet.XUnitExtensions" Version="10.0.0-beta.24617.3">
117+
<Dependency Name="Microsoft.DotNet.XUnitExtensions" Version="10.0.0-beta.24622.1">
118118
<Uri>https://github.com/dotnet/arcade</Uri>
119-
<Sha>d2e22a897257b60f6b528bceba444274d805193f</Sha>
119+
<Sha>8589bd2a216025d753b5f107081bfa28a2d51bb8</Sha>
120120
</Dependency>
121-
<Dependency Name="Microsoft.DotNet.XUnitConsoleRunner" Version="2.9.2-beta.24617.3">
121+
<Dependency Name="Microsoft.DotNet.XUnitConsoleRunner" Version="2.9.2-beta.24622.1">
122122
<Uri>https://github.com/dotnet/arcade</Uri>
123-
<Sha>d2e22a897257b60f6b528bceba444274d805193f</Sha>
123+
<Sha>8589bd2a216025d753b5f107081bfa28a2d51bb8</Sha>
124124
</Dependency>
125-
<Dependency Name="Microsoft.DotNet.Build.Tasks.Archives" Version="10.0.0-beta.24617.3">
125+
<Dependency Name="Microsoft.DotNet.Build.Tasks.Archives" Version="10.0.0-beta.24622.1">
126126
<Uri>https://github.com/dotnet/arcade</Uri>
127-
<Sha>d2e22a897257b60f6b528bceba444274d805193f</Sha>
127+
<Sha>8589bd2a216025d753b5f107081bfa28a2d51bb8</Sha>
128128
</Dependency>
129-
<Dependency Name="Microsoft.DotNet.Build.Tasks.Packaging" Version="10.0.0-beta.24617.3">
129+
<Dependency Name="Microsoft.DotNet.Build.Tasks.Packaging" Version="10.0.0-beta.24622.1">
130130
<Uri>https://github.com/dotnet/arcade</Uri>
131-
<Sha>d2e22a897257b60f6b528bceba444274d805193f</Sha>
131+
<Sha>8589bd2a216025d753b5f107081bfa28a2d51bb8</Sha>
132132
</Dependency>
133-
<Dependency Name="Microsoft.DotNet.Build.Tasks.Installers" Version="10.0.0-beta.24617.3">
133+
<Dependency Name="Microsoft.DotNet.Build.Tasks.Installers" Version="10.0.0-beta.24622.1">
134134
<Uri>https://github.com/dotnet/arcade</Uri>
135-
<Sha>d2e22a897257b60f6b528bceba444274d805193f</Sha>
135+
<Sha>8589bd2a216025d753b5f107081bfa28a2d51bb8</Sha>
136136
</Dependency>
137-
<Dependency Name="Microsoft.DotNet.Build.Tasks.Templating" Version="10.0.0-beta.24617.3">
137+
<Dependency Name="Microsoft.DotNet.Build.Tasks.Templating" Version="10.0.0-beta.24622.1">
138138
<Uri>https://github.com/dotnet/arcade</Uri>
139-
<Sha>d2e22a897257b60f6b528bceba444274d805193f</Sha>
139+
<Sha>8589bd2a216025d753b5f107081bfa28a2d51bb8</Sha>
140140
</Dependency>
141-
<Dependency Name="Microsoft.DotNet.Build.Tasks.Workloads" Version="10.0.0-beta.24617.3">
141+
<Dependency Name="Microsoft.DotNet.Build.Tasks.Workloads" Version="10.0.0-beta.24622.1">
142142
<Uri>https://github.com/dotnet/arcade</Uri>
143-
<Sha>d2e22a897257b60f6b528bceba444274d805193f</Sha>
143+
<Sha>8589bd2a216025d753b5f107081bfa28a2d51bb8</Sha>
144144
</Dependency>
145-
<Dependency Name="Microsoft.DotNet.CodeAnalysis" Version="10.0.0-beta.24617.3">
145+
<Dependency Name="Microsoft.DotNet.CodeAnalysis" Version="10.0.0-beta.24622.1">
146146
<Uri>https://github.com/dotnet/arcade</Uri>
147-
<Sha>d2e22a897257b60f6b528bceba444274d805193f</Sha>
147+
<Sha>8589bd2a216025d753b5f107081bfa28a2d51bb8</Sha>
148148
</Dependency>
149-
<Dependency Name="Microsoft.DotNet.Build.Tasks.TargetFramework" Version="10.0.0-beta.24617.3">
149+
<Dependency Name="Microsoft.DotNet.Build.Tasks.TargetFramework" Version="10.0.0-beta.24622.1">
150150
<Uri>https://github.com/dotnet/arcade</Uri>
151-
<Sha>d2e22a897257b60f6b528bceba444274d805193f</Sha>
151+
<Sha>8589bd2a216025d753b5f107081bfa28a2d51bb8</Sha>
152152
</Dependency>
153-
<Dependency Name="Microsoft.DotNet.RemoteExecutor" Version="10.0.0-beta.24617.3">
153+
<Dependency Name="Microsoft.DotNet.RemoteExecutor" Version="10.0.0-beta.24622.1">
154154
<Uri>https://github.com/dotnet/arcade</Uri>
155-
<Sha>d2e22a897257b60f6b528bceba444274d805193f</Sha>
155+
<Sha>8589bd2a216025d753b5f107081bfa28a2d51bb8</Sha>
156156
</Dependency>
157-
<Dependency Name="Microsoft.DotNet.Build.Tasks.Feed" Version="10.0.0-beta.24617.3">
157+
<Dependency Name="Microsoft.DotNet.Build.Tasks.Feed" Version="10.0.0-beta.24622.1">
158158
<Uri>https://github.com/dotnet/arcade</Uri>
159-
<Sha>d2e22a897257b60f6b528bceba444274d805193f</Sha>
159+
<Sha>8589bd2a216025d753b5f107081bfa28a2d51bb8</Sha>
160160
</Dependency>
161-
<Dependency Name="Microsoft.DotNet.VersionTools.Tasks" Version="10.0.0-beta.24617.3">
161+
<Dependency Name="Microsoft.DotNet.VersionTools.Tasks" Version="10.0.0-beta.24622.1">
162162
<Uri>https://github.com/dotnet/arcade</Uri>
163-
<Sha>d2e22a897257b60f6b528bceba444274d805193f</Sha>
163+
<Sha>8589bd2a216025d753b5f107081bfa28a2d51bb8</Sha>
164164
</Dependency>
165-
<Dependency Name="Microsoft.DotNet.SharedFramework.Sdk" Version="10.0.0-beta.24617.3">
165+
<Dependency Name="Microsoft.DotNet.SharedFramework.Sdk" Version="10.0.0-beta.24622.1">
166166
<Uri>https://github.com/dotnet/arcade</Uri>
167-
<Sha>d2e22a897257b60f6b528bceba444274d805193f</Sha>
167+
<Sha>8589bd2a216025d753b5f107081bfa28a2d51bb8</Sha>
168168
</Dependency>
169169
<Dependency Name="System.ComponentModel.TypeConverter.TestData" Version="10.0.0-beta.24609.1">
170170
<Uri>https://github.com/dotnet/runtime-assets</Uri>
@@ -348,9 +348,9 @@
348348
<Uri>https://github.com/dotnet/xharness</Uri>
349349
<Sha>3119edb6d70fb252e6128b0c7e45d3fc2f49f249</Sha>
350350
</Dependency>
351-
<Dependency Name="Microsoft.DotNet.PackageTesting" Version="10.0.0-beta.24617.3">
351+
<Dependency Name="Microsoft.DotNet.PackageTesting" Version="10.0.0-beta.24622.1">
352352
<Uri>https://github.com/dotnet/arcade</Uri>
353-
<Sha>d2e22a897257b60f6b528bceba444274d805193f</Sha>
353+
<Sha>8589bd2a216025d753b5f107081bfa28a2d51bb8</Sha>
354354
</Dependency>
355355
<Dependency Name="optimization.windows_nt-x64.MIBC.Runtime" Version="1.0.0-prerelease.24612.6">
356356
<Uri>https://dev.azure.com/dnceng/internal/_git/dotnet-optimization</Uri>

eng/Versions.props

+16-16
Original file line numberDiff line numberDiff line change
@@ -85,22 +85,22 @@
8585
<!-- SDK dependencies (also used in wasm build tests -->
8686
<MicrosoftDotNetApiCompatTaskVersion>10.0.100-alpha.1.24616.1</MicrosoftDotNetApiCompatTaskVersion>
8787
<!-- Arcade dependencies -->
88-
<MicrosoftDotNetBuildTasksFeedVersion>10.0.0-beta.24617.3</MicrosoftDotNetBuildTasksFeedVersion>
89-
<MicrosoftDotNetCodeAnalysisVersion>10.0.0-beta.24617.3</MicrosoftDotNetCodeAnalysisVersion>
90-
<MicrosoftDotNetGenAPIVersion>10.0.0-beta.24617.3</MicrosoftDotNetGenAPIVersion>
91-
<MicrosoftDotNetGenFacadesVersion>10.0.0-beta.24617.3</MicrosoftDotNetGenFacadesVersion>
92-
<MicrosoftDotNetXUnitAssertVersion>2.9.2-beta.24617.3</MicrosoftDotNetXUnitAssertVersion>
93-
<MicrosoftDotNetXUnitExtensionsVersion>10.0.0-beta.24617.3</MicrosoftDotNetXUnitExtensionsVersion>
94-
<MicrosoftDotNetXUnitConsoleRunnerVersion>2.9.2-beta.24617.3</MicrosoftDotNetXUnitConsoleRunnerVersion>
95-
<MicrosoftDotNetBuildTasksArchivesVersion>10.0.0-beta.24617.3</MicrosoftDotNetBuildTasksArchivesVersion>
96-
<MicrosoftDotNetBuildTasksInstallersVersion>10.0.0-beta.24617.3</MicrosoftDotNetBuildTasksInstallersVersion>
97-
<MicrosoftDotNetBuildTasksPackagingVersion>10.0.0-beta.24617.3</MicrosoftDotNetBuildTasksPackagingVersion>
98-
<MicrosoftDotNetBuildTasksTargetFrameworkVersion>10.0.0-beta.24617.3</MicrosoftDotNetBuildTasksTargetFrameworkVersion>
99-
<MicrosoftDotNetBuildTasksTemplatingVersion>10.0.0-beta.24617.3</MicrosoftDotNetBuildTasksTemplatingVersion>
100-
<MicrosoftDotNetBuildTasksWorkloadsPackageVersion>10.0.0-beta.24617.3</MicrosoftDotNetBuildTasksWorkloadsPackageVersion>
101-
<MicrosoftDotNetRemoteExecutorVersion>10.0.0-beta.24617.3</MicrosoftDotNetRemoteExecutorVersion>
102-
<MicrosoftDotNetVersionToolsTasksVersion>10.0.0-beta.24617.3</MicrosoftDotNetVersionToolsTasksVersion>
103-
<MicrosoftDotNetPackageTestingVersion>10.0.0-beta.24617.3</MicrosoftDotNetPackageTestingVersion>
88+
<MicrosoftDotNetBuildTasksFeedVersion>10.0.0-beta.24622.1</MicrosoftDotNetBuildTasksFeedVersion>
89+
<MicrosoftDotNetCodeAnalysisVersion>10.0.0-beta.24622.1</MicrosoftDotNetCodeAnalysisVersion>
90+
<MicrosoftDotNetGenAPIVersion>10.0.0-beta.24622.1</MicrosoftDotNetGenAPIVersion>
91+
<MicrosoftDotNetGenFacadesVersion>10.0.0-beta.24622.1</MicrosoftDotNetGenFacadesVersion>
92+
<MicrosoftDotNetXUnitAssertVersion>2.9.2-beta.24622.1</MicrosoftDotNetXUnitAssertVersion>
93+
<MicrosoftDotNetXUnitExtensionsVersion>10.0.0-beta.24622.1</MicrosoftDotNetXUnitExtensionsVersion>
94+
<MicrosoftDotNetXUnitConsoleRunnerVersion>2.9.2-beta.24622.1</MicrosoftDotNetXUnitConsoleRunnerVersion>
95+
<MicrosoftDotNetBuildTasksArchivesVersion>10.0.0-beta.24622.1</MicrosoftDotNetBuildTasksArchivesVersion>
96+
<MicrosoftDotNetBuildTasksInstallersVersion>10.0.0-beta.24622.1</MicrosoftDotNetBuildTasksInstallersVersion>
97+
<MicrosoftDotNetBuildTasksPackagingVersion>10.0.0-beta.24622.1</MicrosoftDotNetBuildTasksPackagingVersion>
98+
<MicrosoftDotNetBuildTasksTargetFrameworkVersion>10.0.0-beta.24622.1</MicrosoftDotNetBuildTasksTargetFrameworkVersion>
99+
<MicrosoftDotNetBuildTasksTemplatingVersion>10.0.0-beta.24622.1</MicrosoftDotNetBuildTasksTemplatingVersion>
100+
<MicrosoftDotNetBuildTasksWorkloadsPackageVersion>10.0.0-beta.24622.1</MicrosoftDotNetBuildTasksWorkloadsPackageVersion>
101+
<MicrosoftDotNetRemoteExecutorVersion>10.0.0-beta.24622.1</MicrosoftDotNetRemoteExecutorVersion>
102+
<MicrosoftDotNetVersionToolsTasksVersion>10.0.0-beta.24622.1</MicrosoftDotNetVersionToolsTasksVersion>
103+
<MicrosoftDotNetPackageTestingVersion>10.0.0-beta.24622.1</MicrosoftDotNetPackageTestingVersion>
104104
<!-- TODO: Remove pinned xunit.analyzers version: https://github.com/dotnet/runtime/issues/97088 -->
105105
<XUnitAnalyzersVersion>1.4.0</XUnitAnalyzersVersion>
106106
<!-- NuGet dependencies -->

eng/common/core-templates/steps/install-microbuild.yml

+37-7
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,49 @@
11
parameters:
2-
# Enable cleanup tasks for MicroBuild
2+
# Enable install tasks for MicroBuild
33
enableMicrobuild: false
4-
# Enable cleanup tasks for MicroBuild on Mac and Linux
4+
# Enable install tasks for MicroBuild on Mac and Linux
55
# Will be ignored if 'enableMicrobuild' is false or 'Agent.Os' is 'Windows_NT'
66
enableMicrobuildForMacAndLinux: false
7+
# Location of the MicroBuild output folder
8+
microBuildOutputFolder: '$(Agent.TempDirectory)'
79
continueOnError: false
810

911
steps:
1012
- ${{ if eq(parameters.enableMicrobuild, 'true') }}:
11-
# Remove Python downgrade with https://github.com/dotnet/arcade/issues/15151
12-
- ${{ if and(eq(parameters.enableMicrobuildForMacAndLinux, 'true'), ne(variables['Agent.Os'], 'Windows_NT')) }}:
13+
- ${{ if eq(parameters.enableMicrobuildForMacAndLinux, 'true') }}:
14+
# Install Python 3.12.x on when Python > 3.12.x is installed - https://github.com/dotnet/source-build/issues/4802
15+
- script: |
16+
version=$(python3 --version | awk '{print $2}')
17+
major=$(echo $version | cut -d. -f1)
18+
minor=$(echo $version | cut -d. -f2)
19+
20+
installPython=false
21+
if [ "$major" -gt 3 ] || { [ "$major" -eq 3 ] && [ "$minor" -gt 12 ]; }; then
22+
installPython=true
23+
fi
24+
25+
echo "Python version: $version."
26+
echo "Install Python 3.12.x: $installPython."
27+
echo "##vso[task.setvariable variable=installPython;isOutput=true]$installPython"
28+
name: InstallPython
29+
displayName: 'Determine Python installation'
30+
condition: and(succeeded(), ne(variables['Agent.Os'], 'Windows_NT'))
31+
1332
- task: UsePythonVersion@0
14-
displayName: 'Use Python 3.11.x'
1533
inputs:
16-
versionSpec: '3.11.x'
34+
versionSpec: '3.12.x'
35+
displayName: 'Use Python 3.12.x'
36+
condition: and(succeeded(), eq(variables['InstallPython.installPython'], 'true'), ne(variables['Agent.Os'], 'Windows_NT'))
37+
38+
# Needed to download the MicroBuild plugin nupkgs on Mac and Linux when nuget.exe is unavailable
39+
- task: UseDotNet@2
40+
displayName: Install .NET 8.0 SDK for MicroBuild Plugin
41+
inputs:
42+
packageType: sdk
43+
version: 8.0.x
44+
installationPath: ${{ parameters.microBuildOutputFolder }}/dotnet
45+
workingDirectory: ${{ parameters.microBuildOutputFolder }}
46+
condition: and(succeeded(), ne(variables['Agent.Os'], 'Windows_NT'))
1747

1848
- task: MicroBuildSigningPlugin@4
1949
displayName: Install MicroBuild plugin
@@ -25,7 +55,7 @@ steps:
2555
azureSubscription: 'MicroBuild Signing Task (DevDiv)'
2656
env:
2757
TeamName: $(_TeamName)
28-
MicroBuildOutputFolderOverride: '$(Agent.TempDirectory)'
58+
MicroBuildOutputFolderOverride: ${{ parameters.microBuildOutputFolder }}
2959
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
3060
continueOnError: ${{ parameters.continueOnError }}
3161
condition: and(

eng/common/cross/build-android-rootfs.sh

+32-17
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ usage()
66
{
77
echo "Creates a toolchain and sysroot used for cross-compiling for Android."
88
echo
9-
echo "Usage: $0 [BuildArch] [ApiLevel]"
9+
echo "Usage: $0 [BuildArch] [ApiLevel] [--ndk NDKVersion]"
1010
echo
1111
echo "BuildArch is the target architecture of Android. Currently only arm64 is supported."
1212
echo "ApiLevel is the target Android API level. API levels usually match to Android releases. See https://source.android.com/source/build-numbers.html"
13+
echo "NDKVersion is the version of Android NDK. The default is r21. See https://developer.android.com/ndk/downloads/revision_history"
1314
echo
1415
echo "By default, the toolchain and sysroot will be generated in cross/android-rootfs/toolchain/[BuildArch]. You can change this behavior"
1516
echo "by setting the TOOLCHAIN_DIR environment variable"
@@ -25,10 +26,15 @@ __BuildArch=arm64
2526
__AndroidArch=aarch64
2627
__AndroidToolchain=aarch64-linux-android
2728

28-
for i in "$@"
29-
do
30-
lowerI="$(echo $i | tr "[:upper:]" "[:lower:]")"
31-
case $lowerI in
29+
while :; do
30+
if [[ "$#" -le 0 ]]; then
31+
break
32+
fi
33+
34+
i=$1
35+
36+
lowerI="$(echo $i | tr "[:upper:]" "[:lower:]")"
37+
case $lowerI in
3238
-?|-h|--help)
3339
usage
3440
exit 1
@@ -43,15 +49,28 @@ for i in "$@"
4349
__AndroidArch=arm
4450
__AndroidToolchain=arm-linux-androideabi
4551
;;
52+
--ndk)
53+
shift
54+
__NDK_Version=$1
55+
;;
4656
*[0-9])
4757
__ApiLevel=$i
4858
;;
4959
*)
5060
__UnprocessedBuildArgs="$__UnprocessedBuildArgs $i"
5161
;;
5262
esac
63+
shift
5364
done
5465

66+
if [[ "$__NDK_Version" == "r21" ]] || [[ "$__NDK_Version" == "r22" ]]; then
67+
__NDK_File_Arch_Spec=-x86_64
68+
__SysRoot=sysroot
69+
else
70+
__NDK_File_Arch_Spec=
71+
__SysRoot=toolchains/llvm/prebuilt/linux-x86_64/sysroot
72+
fi
73+
5574
# Obtain the location of the bash script to figure out where the root of the repo is.
5675
__ScriptBaseDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
5776

@@ -78,15 +97,16 @@ fi
7897

7998
echo "Target API level: $__ApiLevel"
8099
echo "Target architecture: $__BuildArch"
100+
echo "NDK version: $__NDK_Version"
81101
echo "NDK location: $__NDK_Dir"
82102
echo "Target Toolchain location: $__ToolchainDir"
83103

84104
# Download the NDK if required
85105
if [ ! -d $__NDK_Dir ]; then
86106
echo Downloading the NDK into $__NDK_Dir
87107
mkdir -p $__NDK_Dir
88-
wget -q --progress=bar:force:noscroll --show-progress https://dl.google.com/android/repository/android-ndk-$__NDK_Version-linux-x86_64.zip -O $__CrossDir/android-ndk-$__NDK_Version-linux-x86_64.zip
89-
unzip -q $__CrossDir/android-ndk-$__NDK_Version-linux-x86_64.zip -d $__CrossDir
108+
wget -q --progress=bar:force:noscroll --show-progress https://dl.google.com/android/repository/android-ndk-$__NDK_Version-linux$__NDK_File_Arch_Spec.zip -O $__CrossDir/android-ndk-$__NDK_Version-linux.zip
109+
unzip -q $__CrossDir/android-ndk-$__NDK_Version-linux.zip -d $__CrossDir
90110
fi
91111

92112
if [ ! -d $__lldb_Dir ]; then
@@ -116,16 +136,11 @@ for path in $(wget -qO- https://packages.termux.dev/termux-main-21/dists/stable/
116136
fi
117137
done
118138

119-
cp -R "$__TmpDir/data/data/com.termux/files/usr/"* "$__ToolchainDir/sysroot/usr/"
139+
cp -R "$__TmpDir/data/data/com.termux/files/usr/"* "$__ToolchainDir/$__SysRoot/usr/"
120140

121141
# Generate platform file for build.sh script to assign to __DistroRid
122142
echo "Generating platform file..."
123-
echo "RID=android.${__ApiLevel}-${__BuildArch}" > $__ToolchainDir/sysroot/android_platform
124-
125-
echo "Now to build coreclr, libraries and installers; run:"
126-
echo ROOTFS_DIR=\$\(realpath $__ToolchainDir/sysroot\) ./build.sh --cross --arch $__BuildArch \
127-
--subsetCategory coreclr
128-
echo ROOTFS_DIR=\$\(realpath $__ToolchainDir/sysroot\) ./build.sh --cross --arch $__BuildArch \
129-
--subsetCategory libraries
130-
echo ROOTFS_DIR=\$\(realpath $__ToolchainDir/sysroot\) ./build.sh --cross --arch $__BuildArch \
131-
--subsetCategory installer
143+
echo "RID=android.${__ApiLevel}-${__BuildArch}" > $__ToolchainDir/$__SysRoot/android_platform
144+
145+
echo "Now to build coreclr, libraries and host; run:"
146+
echo ROOTFS_DIR=$(realpath $__ToolchainDir/$__SysRoot) ./build.sh clr+libs+host --cross --arch $__BuildArch

eng/common/tools.ps1

+3-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,9 @@ function GetDotNetInstallScript([string] $dotnetRoot) {
262262
if (!(Test-Path $installScript)) {
263263
Create-Directory $dotnetRoot
264264
$ProgressPreference = 'SilentlyContinue' # Don't display the console progress UI - it's a huge perf hit
265-
$uri = "https://dotnet.microsoft.com/download/dotnet/scripts/$dotnetInstallScriptVersion/dotnet-install.ps1"
265+
# $uri = "https://dotnet.microsoft.com/download/dotnet/scripts/$dotnetInstallScriptVersion/dotnet-install.ps1"
266+
# Pre-flighting new install script
267+
$uri = "https://raw.githubusercontent.com/dotnet/install-scripts/fe7622c52c1ed67871a8d2ad9e794be9be7eea01/src/dotnet-install.ps1"
266268

267269
Retry({
268270
Write-Host "GET $uri"

0 commit comments

Comments
 (0)