]> granicus.if.org Git - icu/commitdiff
ICU-20825 Add ARM64 to distrelease.ps1 script, and run in the CI builds
authorJeff Genovy <jefgen@microsoft.com>
Tue, 17 Sep 2019 01:20:13 +0000 (18:20 -0700)
committerJeff Genovy <29107334+jefgen@users.noreply.github.com>
Wed, 18 Sep 2019 17:53:13 +0000 (10:53 -0700)
.ci-builds/.azure-pipelines.yml
icu4c/packaging/distrelease.ps1

index 31c0cb4eee89e2998571b08339f4a59f35e483ef..16548aa64d4ceedaebbbcb92a9d6a053680c502b 100644 (file)
@@ -126,8 +126,8 @@ jobs:
         PathtoPublish: 'icu4c/source/dist/icu-windows.zip'
         ArtifactName: '$(Build.BuildNumber)_ICU4C_MSVC_x86_Release'
 #-------------------------------------------------------------------------
-- job: ICU4C_MSVC_x64_ARM32_ARM64_Release
-  displayName: 'C: MSVC x64 ARM32 ARM64 Release (VS 2017)'
+- job: ICU4C_MSVC_x64_ARM32_ARM64_Release_Distrelease
+  displayName: 'C: MSVC x64 ARM32 ARM64 Release (VS 2017) + Distrelease ARM64'
   timeoutInMinutes: 60
   pool:
     vmImage: 'vs2017-win2016'
@@ -154,6 +154,18 @@ jobs:
         solution: icu4c/source/allinone/allinone.sln
         platform: ARM64
         configuration: Release
+    - task: PowerShell@2
+      displayName: 'PowerShell: Distrelease script (ARM64)'
+      inputs:
+        targetType: filePath
+        filePath: 'icu4c/packaging/distrelease.ps1'
+        arguments: '-arch ARM64'
+        workingDirectory: icu4c
+    - task: PublishBuildArtifacts@1
+      displayName: 'Publish ARM64 Artifacts: icu-windows.zip'
+      inputs:
+        PathtoPublish: 'icu4c/source/dist/icu-windows.zip'
+        ArtifactName: '$(Build.BuildNumber)_ICU4C_MSVC_ARM64_Release'
 #-------------------------------------------------------------------------
 - job: ICU4C_MSVC_x64_Release_DataFilter
   displayName: 'C: MSVC 64-bit Release DataFilter (VS 2017)'
index c8483fada328938a27f5a7a249ded854b3a099b8..d907cefbd32979831b7bdc0540597030f4bf1245 100644 (file)
@@ -13,7 +13,7 @@
 #  (bring up Powershell ISE)
 #    cd C:\icu\icu4c\
 #    Set-ExecutionPolicy -Scope Process Unrestricted
-#    .\packaging\distrelease.ps1 -arch "x64 or x86"
+#    .\packaging\distrelease.ps1 -arch "x64 or x86 or ARM64"
 #
 # Will emit: c:\icu4c\icu\source\dist\icu-windows.zip
 #
@@ -48,6 +48,11 @@ elseif ($arch -eq "x86")
     Copy-Item -Path "$icuDir\lib" -Destination $source -Recurse
     Copy-Item -Path "$icuDir\bin" -Destination $source -Recurse
 }
+elseif ($arch -eq "ARM64")
+{
+    Copy-Item -Path "$icuDir\libARM64" -Destination $source -Recurse
+    Copy-Item -Path "$icuDir\binARM64" -Destination $source -Recurse
+}
 else
 {
     $filename = $MyInvocation.MyCommand.Name;