Skip to content

Commit

Permalink
ICU-21991 added VS2022 checks and changed windows SDK version
Browse files Browse the repository at this point in the history
  • Loading branch information
arorasarvesh authored and rp9-next committed Oct 12, 2023
1 parent cdbf0ef commit bd9e5ed
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 28 deletions.
74 changes: 50 additions & 24 deletions .ci-builds/.azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,13 @@ jobs:
CXX: clang++-14
CXXFLAGS: '-std=c++20 -stdlib=libc++'
#-------------------------------------------------------------------------
# VS 2019 Builds
# VS 2022 Builds
#-------------------------------------------------------------------------
- job: ICU4C_MSVC_x64_Release_Distrelease
displayName: 'C: MSVC 64-bit Release (VS 2019) + Distrelease'
displayName: 'C: MSVC 64-bit Release (VS 2022) + Distrelease'
timeoutInMinutes: 30
pool:
vmImage: 'windows-2019'
vmImage: 'windows-2022'
demands:
- msbuild
- visualstudio
Expand Down Expand Up @@ -257,10 +257,10 @@ jobs:
ArtifactName: '$(Build.BuildNumber)_ICU4C_MSVC_x64_Release'
#-------------------------------------------------------------------------
- job: ICU4C_MSVC_x64_Release_DataFilter
displayName: 'C: MSVC 64-bit Release DataFilter (VS 2019)'
displayName: 'C: MSVC 64-bit Release DataFilter (VS 2022)'
timeoutInMinutes: 30
pool:
vmImage: 'windows-2019'
vmImage: 'windows-2022'
demands:
- msbuild
- visualstudio
Expand All @@ -279,10 +279,10 @@ jobs:
msbuildArgs: '/p:SkipUWP=true'
#-------------------------------------------------------------------------
- job: ICU4C_MSVC_x86_Release_Distrelease
displayName: 'C: MSVC 32-bit Release (VS 2019) + Distrelease'
displayName: 'C: MSVC 32-bit Release (VS 2022) + Distrelease'
timeoutInMinutes: 30
pool:
vmImage: 'windows-2019'
vmImage: 'windows-2022'
demands:
- msbuild
- visualstudio
Expand Down Expand Up @@ -316,10 +316,10 @@ jobs:
ArtifactName: '$(Build.BuildNumber)_ICU4C_MSVC_x86_Release'
#-------------------------------------------------------------------------
- job: ICU4C_MSVC_x64_ARM32_Release
displayName: 'C: MSVC x64 ARM32 Release (VS 2019)'
displayName: 'C: MSVC x64 ARM32 Release (VS 2022)'
timeoutInMinutes: 35
pool:
vmImage: 'windows-2019'
vmImage: 'windows-2022'
demands:
- msbuild
- visualstudio
Expand All @@ -342,10 +342,10 @@ jobs:
configuration: Release
#-------------------------------------------------------------------------
- job: ICU4C_MSVC_x64_ARM64_Release_Distrelease
displayName: 'C: MSVC x64 ARM64 Release (VS 2019) + Distrelease'
displayName: 'C: MSVC x64 ARM64 Release (VS 2022) + Distrelease'
timeoutInMinutes: 35
pool:
vmImage: 'windows-2019'
vmImage: 'windows-2022'
demands:
- msbuild
- visualstudio
Expand Down Expand Up @@ -380,10 +380,10 @@ jobs:
ArtifactName: '$(Build.BuildNumber)_ICU4C_MSVC_ARM64_Release'
#-------------------------------------------------------------------------
- job: ICU4C_MSVC_x64_Debug
displayName: 'C: MSVC x64 Debug (VS 2019)'
displayName: 'C: MSVC x64 Debug (VS 2022)'
timeoutInMinutes: 35
pool:
vmImage: 'windows-2019'
vmImage: 'windows-2022'
demands:
- msbuild
- visualstudio
Expand All @@ -405,10 +405,10 @@ jobs:
arguments: 'x64 Debug'
#-------------------------------------------------------------------------
- job: ICU4C_MSVC_ARM64_Debug
displayName: 'C: MSVC ARM64 Debug (VS 2019)'
displayName: 'C: MSVC ARM64 Debug (VS 2022)'
timeoutInMinutes: 35
pool:
vmImage: 'windows-2019'
vmImage: 'windows-2022'
demands:
- msbuild
- visualstudio
Expand All @@ -433,10 +433,10 @@ jobs:
# There is no /std:c++20 yet, so use c++latest as that includes many of
# the C++20 compiler and library changes.
- job: ICU4C_MSVC_x64_Release_CppLatest
displayName: 'C: MSVC 64-bit Release (VS 2019) /std:c++latest'
displayName: 'C: MSVC 64-bit Release (VS 2022) /std:c++latest'
timeoutInMinutes: 30
pool:
vmImage: 'windows-2019'
vmImage: 'windows-2022'
demands:
- msbuild
- visualstudio
Expand All @@ -458,10 +458,10 @@ jobs:
filename: icu4c/source/allinone/icucheck.bat
arguments: 'x64 Release'
#-------------------------------------------------------------------------
# VS2019 using the VS2017 toolset builds
# VS 2019 Builds
#-------------------------------------------------------------------------
- job: ICU4C_MSVC_x64_Release_VS2017
displayName: 'C: MSVC 64-bit Release (VS 2017)'
- job: ICU4C_MSVC_x64_Release_VS2019
displayName: 'C: MSVC 64-bit Release (VS 2019)'
timeoutInMinutes: 30
pool:
vmImage: 'windows-2019'
Expand All @@ -479,15 +479,14 @@ jobs:
solution: icu4c/source/allinone/allinone.sln
platform: x64
configuration: Release
msbuildArgs: /p:DefaultPlatformToolset=v141
- task: BatchScript@1
displayName: 'Run Tests (icucheck.bat)'
inputs:
filename: icu4c/source/allinone/icucheck.bat
arguments: 'x64 Release'
#-------------------------------------------------------------------------
- job: ICU4C_MSVC_x86_Debug_VS2017
displayName: 'C: MSVC 32-bit Debug (VS 2017)'
- job: ICU4C_MSVC_x86_Debug_VS2019
displayName: 'C: MSVC 32-bit Debug (VS 2019)'
timeoutInMinutes: 60
pool:
vmImage: 'windows-2019'
Expand All @@ -505,13 +504,40 @@ jobs:
solution: icu4c/source/allinone/allinone.sln
platform: Win32
configuration: Debug
msbuildArgs: /p:DefaultPlatformToolset=v141
- task: BatchScript@1
displayName: 'Run Tests (icucheck.bat)'
inputs:
filename: icu4c/source/allinone/icucheck.bat
arguments: 'x86 Debug'
#-------------------------------------------------------------------------
# VS2019 using the VS2017 toolset builds
#-------------------------------------------------------------------------
- job: ICU4C_MSVC_x64_Release_VS2017
displayName: 'C: MSVC 64-bit Release (VS 2017)'
timeoutInMinutes: 30
pool:
vmImage: 'windows-2019'
demands:
- msbuild
- visualstudio
- Cmd
steps:
- checkout: self
lfs: true
fetchDepth: 10
- task: VSBuild@1
displayName: 'Build Solution'
inputs:
solution: icu4c/source/allinone/allinone.sln
platform: x64
configuration: Release
msbuildArgs: /p:DefaultPlatformToolset=v141
- task: BatchScript@1
displayName: 'Run Tests (icucheck.bat)'
inputs:
filename: icu4c/source/allinone/icucheck.bat
arguments: 'x64 Release'
#-------------------------------------------------------------------------
# VS2019 using the VS2015 toolset
#-------------------------------------------------------------------------
- job: ICU4C_MSVC_x64_Release_VS2015
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@
Note: This version must match the version below in the ARM64 section for AdditionalLibraryDirectories
-->
<PropertyGroup Condition="'$(Platform)'=='ARM'">
<WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion>
<WindowsTargetPlatformVersion>10.0.22621.0</WindowsTargetPlatformVersion>
<WindowsSDKDesktopARMSupport>true</WindowsSDKDesktopARMSupport>
</PropertyGroup>
<PropertyGroup Condition="'$(Platform)'=='ARM64'">
<WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion>
<WindowsTargetPlatformVersion>10.0.22621.0</WindowsTargetPlatformVersion>
<WindowsSDKDesktopARM64Support>true</WindowsSDKDesktopARM64Support>
</PropertyGroup>
<PropertyGroup>
Expand Down Expand Up @@ -180,7 +180,7 @@
<!-- The ARM64 Desktop SDK doesn't include this by default -->
<AdditionalDependencies>kernel32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<!-- Note: This needs to match the same version as WindowsTargetPlatformVersion for ARM -->
<AdditionalLibraryDirectories>C:\Program Files (x86)\Windows Kits\10\Lib\10.0.16299.0\um\arm</AdditionalLibraryDirectories>
<AdditionalLibraryDirectories>C:\Program Files (x86)\Windows Kits\10\Lib\10.0.22621.0\um\arm</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
<!-- Options that are common to all ARM 64-bit configurations for *all* projects. -->
Expand All @@ -196,7 +196,7 @@
<!-- The ARM64 Desktop SDK doesn't include this by default -->
<AdditionalDependencies>kernel32.lib;%(AdditionalDependencies)</AdditionalDependencies>
<!-- Note: This needs to match the same version as WindowsTargetPlatformVersion for ARM64 -->
<AdditionalLibraryDirectories>C:\Program Files (x86)\Windows Kits\10\Lib\10.0.16299.0\um\arm64</AdditionalLibraryDirectories>
<AdditionalLibraryDirectories>C:\Program Files (x86)\Windows Kits\10\Lib\10.0.22621.0\um\arm64</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
</Project>

0 comments on commit bd9e5ed

Please sign in to comment.