Update build-package-for-windows.yml: change machine pool (#515)

Change the machine pool from Win-CPU-2021 to onnxruntime-Win-CPU-2022
This commit is contained in:
Changming Sun 2023-08-07 18:06:29 -07:00 коммит произвёл GitHub
Родитель 997e9ee007
Коммит 4c2e13e380
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -24,7 +24,7 @@ parameters:
- name: BuildPool
type: string
default: 'Win-CPU-2021'
default: 'onnxruntime-Win-CPU-2022'
- name: AdditionalBuildFlags
displayName: Additional build flags for build_lib.bat
@ -50,7 +50,7 @@ jobs:
displayName: 'build onnxruntime-extensions and run tests'
inputs:
filename: '.\build_lib.bat'
arguments: '--${{parameters.BuildPlatform}} --build_dir $(Build.BinariesDirectory)/out --config RelWithDebInfo --cmake_generator "Visual Studio 16 2019" --enable_cxx_tests ${{parameters.AdditionalBuildFlags}}'
arguments: '--${{parameters.BuildPlatform}} --build_dir $(Build.BinariesDirectory)/out --config RelWithDebInfo --cmake_generator "Visual Studio 17 2022" --enable_cxx_tests ${{parameters.AdditionalBuildFlags}}'
modifyEnvironment: true
workingFolder: $(Build.SourcesDirectory)
- ${{ else }}:
@ -58,7 +58,7 @@ jobs:
displayName: 'build onnxruntime-extensions'
inputs:
filename: '.\build_lib.bat'
arguments: '--${{parameters.BuildPlatform}} --build_dir $(Build.BinariesDirectory)/out --config RelWithDebInfo --cmake_generator "Visual Studio 16 2019" ${{parameters.AdditionalBuildFlags}}'
arguments: '--${{parameters.BuildPlatform}} --build_dir $(Build.BinariesDirectory)/out --config RelWithDebInfo --cmake_generator "Visual Studio 17 2022" ${{parameters.AdditionalBuildFlags}}'
modifyEnvironment: true
workingFolder: $(Build.SourcesDirectory)