Merge pull request #21227 from dotnet/johluo/win-arm64-3.1
Build aspnetcore for win-arm64 (#19317)
This commit is contained in:
commit
bf9fbc02a2
|
|
@ -250,6 +250,38 @@ stages:
|
||||||
- name: Windows_arm_Packages
|
- name: Windows_arm_Packages
|
||||||
path: artifacts/packages/
|
path: artifacts/packages/
|
||||||
|
|
||||||
|
# Build Windows ARM64
|
||||||
|
- template: jobs/default-build.yml
|
||||||
|
parameters:
|
||||||
|
codeSign: true
|
||||||
|
jobName: Windows_64_build
|
||||||
|
jobDisplayName: "Build: Windows ARM64"
|
||||||
|
agentOs: Windows
|
||||||
|
buildArgs:
|
||||||
|
-arch arm64
|
||||||
|
-sign
|
||||||
|
-pack
|
||||||
|
-noBuildNodeJS
|
||||||
|
-noBuildJava
|
||||||
|
/bl:artifacts/log/build.win-arm64.binlog
|
||||||
|
/p:DotNetSignType=$(_SignType)
|
||||||
|
/p:OnlyPackPlatformSpecificPackages=true
|
||||||
|
/p:AssetManifestFileName=aspnetcore-win-arm64.xml
|
||||||
|
$(_BuildArgs)
|
||||||
|
$(_PublishArgs)
|
||||||
|
$(_InternalRuntimeDownloadArgs)
|
||||||
|
installNodeJs: false
|
||||||
|
installJdk: false
|
||||||
|
artifacts:
|
||||||
|
- name: Windows_arm64_Logs
|
||||||
|
path: artifacts/log/
|
||||||
|
publishOnError: true
|
||||||
|
includeForks: true
|
||||||
|
- name: Windows_arm64_Packages
|
||||||
|
path: artifacts/packages/
|
||||||
|
- name: Windows_arm64_Installers
|
||||||
|
path: artifacts/installers/
|
||||||
|
|
||||||
# Build MacOS
|
# Build MacOS
|
||||||
- template: jobs/default-build.yml
|
- template: jobs/default-build.yml
|
||||||
parameters:
|
parameters:
|
||||||
|
|
|
||||||
|
|
@ -115,6 +115,7 @@
|
||||||
win-x64;
|
win-x64;
|
||||||
win-x86;
|
win-x86;
|
||||||
win-arm;
|
win-arm;
|
||||||
|
win-arm64;
|
||||||
osx-x64;
|
osx-x64;
|
||||||
linux-musl-x64;
|
linux-musl-x64;
|
||||||
linux-musl-arm64;
|
linux-musl-arm64;
|
||||||
|
|
|
||||||
|
|
@ -118,7 +118,7 @@ param(
|
||||||
[ValidateSet('Debug', 'Release')]
|
[ValidateSet('Debug', 'Release')]
|
||||||
$Configuration,
|
$Configuration,
|
||||||
|
|
||||||
[ValidateSet('x64', 'x86', 'arm')]
|
[ValidateSet('x64', 'x86', 'arm', 'arm64')]
|
||||||
$Architecture = 'x64',
|
$Architecture = 'x64',
|
||||||
|
|
||||||
# A list of projects which should be built.
|
# A list of projects which should be built.
|
||||||
|
|
@ -157,7 +157,7 @@ param(
|
||||||
|
|
||||||
# Other lifecycle targets
|
# Other lifecycle targets
|
||||||
[switch]$Help, # Show help
|
[switch]$Help, # Show help
|
||||||
|
|
||||||
# Optional arguments that enable downloading an internal
|
# Optional arguments that enable downloading an internal
|
||||||
# runtime or runtime from a non-default location
|
# runtime or runtime from a non-default location
|
||||||
[string]$DotNetRuntimeSourceFeed,
|
[string]$DotNetRuntimeSourceFeed,
|
||||||
|
|
|
||||||
|
|
@ -107,6 +107,7 @@ and are generated based on the last package release.
|
||||||
<LatestPackageReference Include="microsoft.netcore.app.runtime.win-x64" Version="$(MicrosoftNETCoreAppRuntimeVersion)" />
|
<LatestPackageReference Include="microsoft.netcore.app.runtime.win-x64" Version="$(MicrosoftNETCoreAppRuntimeVersion)" />
|
||||||
<LatestPackageReference Include="microsoft.netcore.app.runtime.win-x86" Version="$(MicrosoftNETCoreAppRuntimeVersion)" />
|
<LatestPackageReference Include="microsoft.netcore.app.runtime.win-x86" Version="$(MicrosoftNETCoreAppRuntimeVersion)" />
|
||||||
<LatestPackageReference Include="microsoft.netcore.app.runtime.win-arm" Version="$(MicrosoftNETCoreAppRuntimeVersion)" />
|
<LatestPackageReference Include="microsoft.netcore.app.runtime.win-arm" Version="$(MicrosoftNETCoreAppRuntimeVersion)" />
|
||||||
|
<LatestPackageReference Include="microsoft.netcore.app.runtime.win-arm64" Version="$(MicrosoftNETCoreAppRuntimeVersion)" />
|
||||||
<LatestPackageReference Include="microsoft.netcore.app.runtime.osx-x64" Version="$(MicrosoftNETCoreAppRuntimeVersion)" />
|
<LatestPackageReference Include="microsoft.netcore.app.runtime.osx-x64" Version="$(MicrosoftNETCoreAppRuntimeVersion)" />
|
||||||
<LatestPackageReference Include="microsoft.netcore.app.runtime.linux-x64" Version="$(MicrosoftNETCoreAppRuntimeVersion)" />
|
<LatestPackageReference Include="microsoft.netcore.app.runtime.linux-x64" Version="$(MicrosoftNETCoreAppRuntimeVersion)" />
|
||||||
<LatestPackageReference Include="microsoft.netcore.app.runtime.linux-arm" Version="$(MicrosoftNETCoreAppRuntimeVersion)" />
|
<LatestPackageReference Include="microsoft.netcore.app.runtime.linux-arm" Version="$(MicrosoftNETCoreAppRuntimeVersion)" />
|
||||||
|
|
|
||||||
|
|
@ -93,9 +93,11 @@
|
||||||
<_DotNetFilesToExclude Include="$(BaseRedistNetCorePath)win-x64\shared\Microsoft.NETCore.App\**\*.dll" CertificateName="None" />
|
<_DotNetFilesToExclude Include="$(BaseRedistNetCorePath)win-x64\shared\Microsoft.NETCore.App\**\*.dll" CertificateName="None" />
|
||||||
<_DotNetFilesToExclude Include="$(BaseRedistNetCorePath)win-x86\shared\Microsoft.NETCore.App\**\*.dll" CertificateName="None" />
|
<_DotNetFilesToExclude Include="$(BaseRedistNetCorePath)win-x86\shared\Microsoft.NETCore.App\**\*.dll" CertificateName="None" />
|
||||||
<_DotNetFilesToExclude Include="$(BaseRedistNetCorePath)win-arm\shared\Microsoft.NETCore.App\**\*.dll" CertificateName="None" />
|
<_DotNetFilesToExclude Include="$(BaseRedistNetCorePath)win-arm\shared\Microsoft.NETCore.App\**\*.dll" CertificateName="None" />
|
||||||
|
<_DotNetFilesToExclude Include="$(BaseRedistNetCorePath)win-arm64\shared\Microsoft.NETCore.App\**\*.dll" CertificateName="None" />
|
||||||
<_DotNetFilesToExclude Include="$(BaseRedistNetCorePath)win-x64\host\**\*.dll" CertificateName="None" />
|
<_DotNetFilesToExclude Include="$(BaseRedistNetCorePath)win-x64\host\**\*.dll" CertificateName="None" />
|
||||||
<_DotNetFilesToExclude Include="$(BaseRedistNetCorePath)win-x86\host\**\*.dll" CertificateName="None" />
|
<_DotNetFilesToExclude Include="$(BaseRedistNetCorePath)win-x86\host\**\*.dll" CertificateName="None" />
|
||||||
<_DotNetFilesToExclude Include="$(BaseRedistNetCorePath)win-arm\host\**\*.dll" CertificateName="None" />
|
<_DotNetFilesToExclude Include="$(BaseRedistNetCorePath)win-arm\host\**\*.dll" CertificateName="None" />
|
||||||
|
<_DotNetFilesToExclude Include="$(BaseRedistNetCorePath)win-arm64\host\**\*.dll" CertificateName="None" />
|
||||||
<_DotNetFilesToExclude Include="$(RedistNetCorePath)dotnet.exe" CertificateName="None" />
|
<_DotNetFilesToExclude Include="$(RedistNetCorePath)dotnet.exe" CertificateName="None" />
|
||||||
<FileSignInfo Include="@(_DotNetFilesToExclude->'%(FileName)%(Extension)'->Distinct())" CertificateName="None" />
|
<FileSignInfo Include="@(_DotNetFilesToExclude->'%(FileName)%(Extension)'->Distinct())" CertificateName="None" />
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -104,7 +104,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant
|
||||||
<CrossgenToolPackagePath>$(CrossgenToolFileName)</CrossgenToolPackagePath>
|
<CrossgenToolPackagePath>$(CrossgenToolFileName)</CrossgenToolPackagePath>
|
||||||
<!-- Disambiguated RID-specific crossgen executable relative path -->
|
<!-- Disambiguated RID-specific crossgen executable relative path -->
|
||||||
<CrossgenToolPackagePath Condition=" '$(TargetRuntimeIdentifier)' == 'linux-arm' ">x64_arm\$(CrossgenToolPackagePath)</CrossgenToolPackagePath>
|
<CrossgenToolPackagePath Condition=" '$(TargetRuntimeIdentifier)' == 'linux-arm' ">x64_arm\$(CrossgenToolPackagePath)</CrossgenToolPackagePath>
|
||||||
<CrossgenToolPackagePath Condition=" '$(TargetRuntimeIdentifier)' == 'linux-arm64' OR '$(TargetRuntimeIdentifier)' == 'linux-musl-arm64' ">x64_arm64\$(CrossgenToolPackagePath)</CrossgenToolPackagePath>
|
<CrossgenToolPackagePath Condition=" '$(TargetRuntimeIdentifier)' == 'win-arm64' OR '$(TargetRuntimeIdentifier)' == 'linux-arm64' OR '$(TargetRuntimeIdentifier)' == 'linux-musl-arm64' ">x64_arm64\$(CrossgenToolPackagePath)</CrossgenToolPackagePath>
|
||||||
<CrossgenToolPackagePath Condition=" '$(TargetRuntimeIdentifier)' == 'win-arm' ">x86_arm\$(CrossgenToolPackagePath)</CrossgenToolPackagePath>
|
<CrossgenToolPackagePath Condition=" '$(TargetRuntimeIdentifier)' == 'win-arm' ">x86_arm\$(CrossgenToolPackagePath)</CrossgenToolPackagePath>
|
||||||
|
|
||||||
<RuntimePackageRoot>$([System.IO.Path]::Combine('$(NuGetPackageRoot)', 'microsoft.netcore.app.runtime.$(RuntimeIdentifier)', '$(MicrosoftNETCoreAppRuntimeVersion)'))</RuntimePackageRoot>
|
<RuntimePackageRoot>$([System.IO.Path]::Combine('$(NuGetPackageRoot)', 'microsoft.netcore.app.runtime.$(RuntimeIdentifier)', '$(MicrosoftNETCoreAppRuntimeVersion)'))</RuntimePackageRoot>
|
||||||
|
|
@ -492,7 +492,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target Name="IncludeVersionFile"
|
<Target Name="IncludeVersionFile"
|
||||||
DependsOnTargets="GenerateSharedFxVersionsFiles"
|
DependsOnTargets="GenerateSharedFxVersionsFiles"
|
||||||
BeforeTargets="_GetPackageFiles">
|
BeforeTargets="_GetPackageFiles">
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<DefaultItemExcludes>$(DefaultItemExcludes);node_modules\**</DefaultItemExcludes>
|
<DefaultItemExcludes>$(DefaultItemExcludes);node_modules\**</DefaultItemExcludes>
|
||||||
<SeleniumScreenShotsFolderPath>$([MSBuild]::NormalizeDirectory('$(ArtifactsTestResultsDir)','$(MSBuildProjectName)'))</SeleniumScreenShotsFolderPath>
|
<SeleniumScreenShotsFolderPath>$([MSBuild]::NormalizeDirectory('$(ArtifactsTestResultsDir)','$(MSBuildProjectName)'))</SeleniumScreenShotsFolderPath>
|
||||||
<SeleniumProcessTrackingFolder Condition="'$(SeleniumProcessTrackingFolder)' == ''">$([MSBuild]::EnsureTrailingSlash('$(RepoRoot)'))artifacts\tmp\selenium\</SeleniumProcessTrackingFolder>
|
<SeleniumProcessTrackingFolder Condition="'$(SeleniumProcessTrackingFolder)' == ''">$([MSBuild]::EnsureTrailingSlash('$(RepoRoot)'))artifacts\tmp\selenium\</SeleniumProcessTrackingFolder>
|
||||||
<SeleniumE2ETestsSupported Condition="'$(SeleniumE2ETestsSupported)' == '' and '$(TargetArchitecture)' != 'arm' and '$(OS)' == 'Windows_NT'">true</SeleniumE2ETestsSupported>
|
<SeleniumE2ETestsSupported Condition="'$(SeleniumE2ETestsSupported)' == '' and '$(TargetArchitecture)' != 'arm' and '$(TargetArchitecture)' != 'arm64' and '$(OS)' == 'Windows_NT'">true</SeleniumE2ETestsSupported>
|
||||||
|
|
||||||
<!-- We want to enforce prerequisites when we build from the CI or within Visual Studio -->
|
<!-- We want to enforce prerequisites when we build from the CI or within Visual Studio -->
|
||||||
<EnforcedE2EBuildEnvironment Condition="'$(ContinuousIntegrationBuild)' == 'true' or '$(BuildingInsideVisualStudio)' == 'true'">true</EnforcedE2EBuildEnvironment>
|
<EnforcedE2EBuildEnvironment Condition="'$(ContinuousIntegrationBuild)' == 'true' or '$(BuildingInsideVisualStudio)' == 'true'">true</EnforcedE2EBuildEnvironment>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue