produce windows arm64 bits (#1886)

* add win-arm64 support

* test version

* fix error
This commit is contained in:
Alan Ren
2023-03-01 15:58:10 -08:00
committed by GitHub
parent c7e64e2334
commit 9958c9f003
7 changed files with 21 additions and 9 deletions

View File

@@ -23,7 +23,7 @@
<AssemblyFileVersion>$(VersionPrefix)-$(VersionSuffix)</AssemblyFileVersion> <AssemblyFileVersion>$(VersionPrefix)-$(VersionSuffix)</AssemblyFileVersion>
<NuspecProperties>version=$(PackageVersion)</NuspecProperties> <NuspecProperties>version=$(PackageVersion)</NuspecProperties>
<ToolsServiceTargetRuntimes>win-x64;win-x86;ubuntu.14.04-x64;ubuntu.16.04-x64;centos.7-x64;rhel.7.2-x64;debian.8-x64;fedora.23-x64;opensuse.13.2-x64;osx.10.11-x64;osx-x64;osx-arm64;linux-x64</ToolsServiceTargetRuntimes> <ToolsServiceTargetRuntimes>win-x64;win-x86;win-arm64;ubuntu.14.04-x64;ubuntu.16.04-x64;centos.7-x64;rhel.7.2-x64;debian.8-x64;fedora.23-x64;opensuse.13.2-x64;osx.10.11-x64;osx-x64;osx-arm64;linux-x64</ToolsServiceTargetRuntimes>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild> <EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<EnableNETAnalyzers>true</EnableNETAnalyzers> <EnableNETAnalyzers>true</EnableNETAnalyzers>
<!-- This is required for IDE0005 to fail the build https://github.com/dotnet/roslyn/issues/41640 --> <!-- This is required for IDE0005 to fail the build https://github.com/dotnet/roslyn/issues/41640 -->

View File

@@ -27,12 +27,11 @@ parameters:
archiveName: 'win-x86' archiveName: 'win-x86'
archiveFileFormat: 'zip' archiveFileFormat: 'zip'
archiveType: 'zip' archiveType: 'zip'
# - name: 'win10-arm64' - name: 'win-arm64'
# displayName: 'Windows 10 ARM 64 bit' archiveName: 'win-arm64'
# archiveFileFormat: 'zip' displayName: 'Windows ARM 64 bit'
# - name: 'win10-arm' archiveFileFormat: 'zip'
# displayName: 'Windows 10 ARM' archiveType: 'zip'
# archiveFileFormat: 'zip'
- name: projects - name: projects
type: object type: object
default: default:

View File

@@ -25,7 +25,7 @@ steps:
displayName: 'Run Automated Release Script' displayName: 'Run Automated Release Script'
inputs: inputs:
filePath: '$(System.DefaultWorkingDirectory)/CrossPlatBuildScripts/AutomatedReleases/sqltoolsserviceRelease.ps1' filePath: '$(System.DefaultWorkingDirectory)/CrossPlatBuildScripts/AutomatedReleases/sqltoolsserviceRelease.ps1'
arguments: '-workspace $(Build.SourcesDirectory) -minTag 4.5.0.0 -target $(Build.SourceBranch) -isPrerelease $false -artifactsBuildId $(Build.BuildId)' arguments: '-workspace $(Build.SourcesDirectory) -minTag 5.5.0.0 -target $(Build.SourceBranch) -isPrerelease $false -artifactsBuildId $(Build.BuildId)'
workingDirectory: '$(Build.SourcesDirectory)' workingDirectory: '$(Build.SourcesDirectory)'
env: env:
GITHUB_DISTRO_MIXIN_PASSWORD: $(github-distro-mixin-password) GITHUB_DISTRO_MIXIN_PASSWORD: $(github-distro-mixin-password)

View File

@@ -125,6 +125,7 @@ Task("PopulateRuntimes")
"default", // To allow testing the published artifact "default", // To allow testing the published artifact
"win-x64", "win-x64",
"win-x86", "win-x86",
"win-arm64",
"ubuntu.14.04-x64", "ubuntu.14.04-x64",
"ubuntu.16.04-x64", "ubuntu.16.04-x64",
"centos.7-x64", "centos.7-x64",

View File

@@ -54,7 +54,8 @@
"runtime.ubuntu.14.04-x64.native.Microsoft.SqlToolsService", "runtime.ubuntu.14.04-x64.native.Microsoft.SqlToolsService",
"runtime.ubuntu.16.04-x64.native.Microsoft.SqlToolsService", "runtime.ubuntu.16.04-x64.native.Microsoft.SqlToolsService",
"runtime.win-x64.native.Microsoft.SqlToolsService", "runtime.win-x64.native.Microsoft.SqlToolsService",
"runtime.osx-arm64.native.Microsoft.SqlToolsService" "runtime.osx-arm64.native.Microsoft.SqlToolsService",
"runtime.win-arm64.native.Microsoft.SqlToolsService"
], ],
"DotnetToolProjects": [ "DotnetToolProjects": [
"Microsoft.SqlTools.ServiceLayer", "Microsoft.SqlTools.ServiceLayer",

View File

@@ -20,6 +20,7 @@
<ProjectReference Include="../runtime.ubuntu.14.04-x64.native.Microsoft.SqlToolsService/runtime.ubuntu.14.04-x64.native.Microsoft.SqlToolsService.csproj" PrivateAssets="All" /> <ProjectReference Include="../runtime.ubuntu.14.04-x64.native.Microsoft.SqlToolsService/runtime.ubuntu.14.04-x64.native.Microsoft.SqlToolsService.csproj" PrivateAssets="All" />
<ProjectReference Include="../runtime.ubuntu.16.04-x64.native.Microsoft.SqlToolsService/runtime.ubuntu.16.04-x64.native.Microsoft.SqlToolsService.csproj" PrivateAssets="All" /> <ProjectReference Include="../runtime.ubuntu.16.04-x64.native.Microsoft.SqlToolsService/runtime.ubuntu.16.04-x64.native.Microsoft.SqlToolsService.csproj" PrivateAssets="All" />
<ProjectReference Include="../runtime.win-x64.native.Microsoft.SqlToolsService/runtime.win-x64.native.Microsoft.SqlToolsService.csproj" PrivateAssets="All" /> <ProjectReference Include="../runtime.win-x64.native.Microsoft.SqlToolsService/runtime.win-x64.native.Microsoft.SqlToolsService.csproj" PrivateAssets="All" />
<ProjectReference Include="../runtime.win-arm64.native.Microsoft.SqlToolsService/runtime.win-arm64.native.Microsoft.SqlToolsService.csproj" PrivateAssets="All" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
@@ -32,5 +33,6 @@
<PackageReference Include="runtime.ubuntu.14.04-x64.native.Microsoft.SqlToolsService" VersionOverride="$(PackageVersion)" /> <PackageReference Include="runtime.ubuntu.14.04-x64.native.Microsoft.SqlToolsService" VersionOverride="$(PackageVersion)" />
<PackageReference Include="runtime.ubuntu.16.04-x64.native.Microsoft.SqlToolsService" VersionOverride="$(PackageVersion)" /> <PackageReference Include="runtime.ubuntu.16.04-x64.native.Microsoft.SqlToolsService" VersionOverride="$(PackageVersion)" />
<PackageReference Include="runtime.win-x64.native.Microsoft.SqlToolsService" VersionOverride="$(PackageVersion)" /> <PackageReference Include="runtime.win-x64.native.Microsoft.SqlToolsService" VersionOverride="$(PackageVersion)" />
<PackageReference Include="runtime.win-arm64.native.Microsoft.SqlToolsService" VersionOverride="$(PackageVersion)" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.Build.NoTargets">
<PropertyGroup>
<PackageDescription>SQL Tools Service application for the win-arm64 runtime. This package is intended to be used by internal applications only and should not be referenced directly.</PackageDescription>
</PropertyGroup>
<ItemGroup>
<None Include="../../artifacts/publish/Microsoft.SqlTools.ServiceLayer/win-arm64/$(TargetFramework)/**" Pack="true" PackagePath="runtimes/win-arm64/native" />
</ItemGroup>
</Project>