Skip to content

Commit 9b6593e

Browse files
idiskyleankitm3k
authored andcommitted
Migrate Nuget Windows AI Pipeline to Use 1ES Template (microsoft#22572)
1 parent 723862c commit 9b6593e

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

tools/ci_build/github/azure-pipelines/nuget-windows-ai.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,8 @@ extends:
1717
name: onnxruntime-Win-CPU-2022
1818
os: windows
1919
sdl:
20-
git:
21-
submodules: false
2220
tsa:
2321
enabled: true
24-
codeSignValidation:
25-
enabled: true
26-
break: true
2722
policheck:
2823
enabled: true
2924
exclusionsFile: '$(Build.SourcesDirectory)\tools\ci_build\policheck_exclusions.xml'

tools/ci_build/github/azure-pipelines/templates/windowsai-steps.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ parameters:
1111

1212
jobs:
1313
- job: Windows_Packaging_${{ parameters.BuildArch }}_${{ parameters.Runtime }}
14-
timeoutInMinutes: 180
1514
templateContext:
1615
outputs:
1716
- output: pipelineArtifact
@@ -25,16 +24,11 @@ jobs:
2524

2625
- task: UsePythonVersion@0
2726
inputs:
28-
versionSpec: '3.12'
27+
versionSpec: '3.9'
2928
addToPath: true
3029
${{ if eq(parameters.BuildArch, 'x86') }}:
3130
architecture: 'x86'
3231

33-
- task: PipAuthenticate@1
34-
displayName: 'Pip Authenticate'
35-
inputs:
36-
artifactFeeds: 'Lotus'
37-
3832
- template: telemetry-steps.yml
3933

4034
- task: NuGetCommand@2
@@ -88,8 +82,10 @@ jobs:
8882
8983
# must call vsdevcmd first to add cmake to PATH
9084
- script: |
85+
curl -O -L https://github.com/Kitware/CMake/releases/download/v3.28.3/cmake-3.28.3-windows-x86_64.zip
86+
7z x cmake-3.28.3-windows-x86_64.zip
9187
python --version
92-
python "$(Build.SourcesDirectory)\tools\ci_build\build.py" --build_dir $(Build.BinariesDirectory) --parallel --use_binskim_compliant_compile_flags --build_shared_lib --enable_onnx_tests --ms_experimental --use_dml --use_winml --cmake_generator "Visual Studio 17 2022" --update --config RelWithDebInfo --enable_lto --use_telemetry --disable_rtti --enable_wcos --windows_sdk_version "10.0.22621.0" $(BuildFlags) --cmake_extra_defines "CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO=/PROFILE" "CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO=/PROFILE"
88+
python "$(Build.SourcesDirectory)\tools\ci_build\build.py" --build_dir $(Build.BinariesDirectory) --parallel --use_binskim_compliant_compile_flags --build_shared_lib --enable_onnx_tests --ms_experimental --use_dml --use_winml --cmake_generator "Visual Studio 17 2022" --update --config RelWithDebInfo --enable_lto --use_telemetry --disable_rtti --enable_wcos --windows_sdk_version "10.0.22621.0" $(BuildFlags) --cmake_extra_defines "CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO=/PROFILE" "CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO=/PROFILE" --cmake_path $(Build.BinariesDirectory)\cmake-3.28.3-windows-x86_64\bin\cmake.exe --ctest_path $(Build.BinariesDirectory)\cmake-3.28.3-windows-x86_64\bin\ctest.exe
9389
workingDirectory: '$(Build.BinariesDirectory)'
9490
displayName: 'Generate cmake config'
9591

0 commit comments

Comments
 (0)