From 3174e3da5710e01cc569b844fde01cf95b9fcd5f Mon Sep 17 00:00:00 2001 From: kailums <109063327+kailums@users.noreply.github.com> Date: Mon, 21 Oct 2024 22:50:31 +0800 Subject: [PATCH] update pipline python version from 3.8 to 3.12 (#22517) ### Description As the python3.8 is going to reach EOL. https://discuss.python.org/t/python-3-13-0-final-has-been-released/ https://discuss.python.org/t/python-3-8-is-now-officially-eol/66983 we update our ci pipeline python version which still using 3.8 to 3.12 --- .../azure-pipelines/nuget/templates/test_win.yml | 2 +- .../github/azure-pipelines/post-merge-jobs.yml | 6 +++--- .../azure-pipelines/rocm-nuget-packaging-pipeline.yml | 2 +- .../stages/nuget-cuda-packaging-stage.yml | 2 +- .../github/azure-pipelines/templates/c-api-cpu.yml | 2 +- .../github/azure-pipelines/templates/linux-wasm-ci.yml | 2 +- .../ondevice-training-cpu-packaging-pipeline.yml | 2 +- .../azure-pipelines/templates/publish-nuget-steps.yml | 2 +- .../github/azure-pipelines/templates/qnn-ep-win.yml | 8 ++++---- .../azure-pipelines/templates/react-native-ci.yml | 10 +++++----- .../templates/stages/mac-ios-packaging-build-stage.yml | 2 +- .../azure-pipelines/templates/validate-package.yml | 4 ++-- .../github/azure-pipelines/templates/win-ci.yml | 4 ++-- .../github/azure-pipelines/templates/win-wasm-ci.yml | 2 +- .../github/azure-pipelines/win-qnn-ci-pipeline.yml | 2 +- 15 files changed, 26 insertions(+), 26 deletions(-) diff --git a/tools/ci_build/github/azure-pipelines/nuget/templates/test_win.yml b/tools/ci_build/github/azure-pipelines/nuget/templates/test_win.yml index ddcea447adc94..4842fcbd4dcfb 100644 --- a/tools/ci_build/github/azure-pipelines/nuget/templates/test_win.yml +++ b/tools/ci_build/github/azure-pipelines/nuget/templates/test_win.yml @@ -40,7 +40,7 @@ stages: steps: - task: UsePythonVersion@0 inputs: - versionSpec: '3.8' + versionSpec: '3.12' addToPath: true architecture: x64 diff --git a/tools/ci_build/github/azure-pipelines/post-merge-jobs.yml b/tools/ci_build/github/azure-pipelines/post-merge-jobs.yml index 833e97b437c33..7f131590c900b 100644 --- a/tools/ci_build/github/azure-pipelines/post-merge-jobs.yml +++ b/tools/ci_build/github/azure-pipelines/post-merge-jobs.yml @@ -377,7 +377,7 @@ stages: - task: UsePythonVersion@0 inputs: - versionSpec: '3.8' + versionSpec: '3.12' addToPath: true architecture: x64 @@ -411,7 +411,7 @@ stages: steps: - task: UsePythonVersion@0 inputs: - versionSpec: "3.9" + versionSpec: "3.12" addToPath: true architecture: "x64" @@ -447,7 +447,7 @@ stages: steps: - task: UsePythonVersion@0 inputs: - versionSpec: "3.9" + versionSpec: "3.12" addToPath: true architecture: "x64" diff --git a/tools/ci_build/github/azure-pipelines/rocm-nuget-packaging-pipeline.yml b/tools/ci_build/github/azure-pipelines/rocm-nuget-packaging-pipeline.yml index 9e1387ac47c97..471e911843aed 100644 --- a/tools/ci_build/github/azure-pipelines/rocm-nuget-packaging-pipeline.yml +++ b/tools/ci_build/github/azure-pipelines/rocm-nuget-packaging-pipeline.yml @@ -255,7 +255,7 @@ stages: - task: UsePythonVersion@0 displayName: 'Use Python' inputs: - versionSpec: 3.8 + versionSpec: 3.12 - task: MSBuild@1 displayName: 'Build Nuget Packages' diff --git a/tools/ci_build/github/azure-pipelines/stages/nuget-cuda-packaging-stage.yml b/tools/ci_build/github/azure-pipelines/stages/nuget-cuda-packaging-stage.yml index b8ade5d36f5a1..7133031c84f49 100644 --- a/tools/ci_build/github/azure-pipelines/stages/nuget-cuda-packaging-stage.yml +++ b/tools/ci_build/github/azure-pipelines/stages/nuget-cuda-packaging-stage.yml @@ -135,7 +135,7 @@ stages: - task: UsePythonVersion@0 displayName: 'Use Python' inputs: - versionSpec: 3.8 + versionSpec: 3.12 - task: MSBuild@1 displayName: 'Build Nuget Packages' diff --git a/tools/ci_build/github/azure-pipelines/templates/c-api-cpu.yml b/tools/ci_build/github/azure-pipelines/templates/c-api-cpu.yml index e933e1e70ff76..a98efa8f3fc92 100644 --- a/tools/ci_build/github/azure-pipelines/templates/c-api-cpu.yml +++ b/tools/ci_build/github/azure-pipelines/templates/c-api-cpu.yml @@ -446,7 +446,7 @@ stages: - task: UsePythonVersion@0 displayName: 'Use Python' inputs: - versionSpec: 3.8 + versionSpec: 3.12 - task: MSBuild@1 displayName: 'Build Nuget Packages' diff --git a/tools/ci_build/github/azure-pipelines/templates/linux-wasm-ci.yml b/tools/ci_build/github/azure-pipelines/templates/linux-wasm-ci.yml index 2ab432e94fcbd..41ba5c3868f5e 100644 --- a/tools/ci_build/github/azure-pipelines/templates/linux-wasm-ci.yml +++ b/tools/ci_build/github/azure-pipelines/templates/linux-wasm-ci.yml @@ -73,7 +73,7 @@ jobs: displayName: 'Checkout submodules' - task: UsePythonVersion@0 inputs: - versionSpec: '3.8' + versionSpec: '3.12' addToPath: true architecture: $(buildArch) - template: download-deps.yml diff --git a/tools/ci_build/github/azure-pipelines/templates/ondevice-training-cpu-packaging-pipeline.yml b/tools/ci_build/github/azure-pipelines/templates/ondevice-training-cpu-packaging-pipeline.yml index 5cfa135135dca..90055cbbc6c3e 100644 --- a/tools/ci_build/github/azure-pipelines/templates/ondevice-training-cpu-packaging-pipeline.yml +++ b/tools/ci_build/github/azure-pipelines/templates/ondevice-training-cpu-packaging-pipeline.yml @@ -233,7 +233,7 @@ stages: - task: UsePythonVersion@0 displayName: 'Use Python' inputs: - versionSpec: 3.8 + versionSpec: 3.12 - task: MSBuild@1 displayName: 'Build Nuget Packages' diff --git a/tools/ci_build/github/azure-pipelines/templates/publish-nuget-steps.yml b/tools/ci_build/github/azure-pipelines/templates/publish-nuget-steps.yml index 8639a5ca0a55d..6e13db553629e 100644 --- a/tools/ci_build/github/azure-pipelines/templates/publish-nuget-steps.yml +++ b/tools/ci_build/github/azure-pipelines/templates/publish-nuget-steps.yml @@ -34,7 +34,7 @@ stages: - task: UsePythonVersion@0 inputs: - versionSpec: '3.9' + versionSpec: '3.12' addToPath: true - template: set-version-number-variables-step.yml diff --git a/tools/ci_build/github/azure-pipelines/templates/qnn-ep-win.yml b/tools/ci_build/github/azure-pipelines/templates/qnn-ep-win.yml index 30280c6e22c7e..7ec84453321ef 100644 --- a/tools/ci_build/github/azure-pipelines/templates/qnn-ep-win.yml +++ b/tools/ci_build/github/azure-pipelines/templates/qnn-ep-win.yml @@ -1,6 +1,6 @@ parameters: QnnSdk: '2.27.0.240926' - build_config: 'RelWithDebInfo' + build_config: 'RelWithDebInfo' IsReleaseBuild: false DoEsrp: false qnn_ep_build_pool_name: 'Onnxruntime-QNNEP-Windows-2022-CPU' @@ -32,9 +32,9 @@ stages: - task: UsePythonVersion@0 inputs: - versionSpec: '3.8' + versionSpec: '3.12' addToPath: true - + - template: jobs/download_win_qnn_sdk.yml parameters: QnnSDKVersion: ${{ parameters.QnnSdk }} @@ -44,7 +44,7 @@ stages: inputs: scriptPath: '$(Build.SourcesDirectory)\tools\ci_build\build.py' arguments: '--use_qnn --qnn_home $(QnnSDKRootDir) $(commonBuildArgs)' - + - task: VSBuild@1 displayName: 'Build onnxruntime' inputs: diff --git a/tools/ci_build/github/azure-pipelines/templates/react-native-ci.yml b/tools/ci_build/github/azure-pipelines/templates/react-native-ci.yml index 8593aa2d821fa..ea3ec00e68f73 100644 --- a/tools/ci_build/github/azure-pipelines/templates/react-native-ci.yml +++ b/tools/ci_build/github/azure-pipelines/templates/react-native-ci.yml @@ -23,7 +23,7 @@ parameters: displayName: 'Stage that the initial stage of react-native-ci depends on' type: string default: '' - + - name: enable_code_sign displayName: Use GPG to sign the jars type: boolean @@ -58,9 +58,9 @@ stages: steps: - template: use-xcode-version.yml - task: UsePythonVersion@0 - displayName: Use python 3.9 + displayName: Use python 3.12 inputs: - versionSpec: "3.9" + versionSpec: "3.12" addToPath: true architecture: "x64" @@ -113,9 +113,9 @@ stages: condition: always() - template: use-xcode-version.yml - task: UsePythonVersion@0 - displayName: Use python 3.9 + displayName: Use python 3.12 inputs: - versionSpec: "3.9" + versionSpec: "3.12" addToPath: true architecture: "x64" diff --git a/tools/ci_build/github/azure-pipelines/templates/stages/mac-ios-packaging-build-stage.yml b/tools/ci_build/github/azure-pipelines/templates/stages/mac-ios-packaging-build-stage.yml index 0d2330489279d..a3b6bc1025267 100644 --- a/tools/ci_build/github/azure-pipelines/templates/stages/mac-ios-packaging-build-stage.yml +++ b/tools/ci_build/github/azure-pipelines/templates/stages/mac-ios-packaging-build-stage.yml @@ -62,7 +62,7 @@ stages: - task: UsePythonVersion@0 inputs: - versionSpec: "3.9" + versionSpec: "3.12" addToPath: true architecture: "x64" diff --git a/tools/ci_build/github/azure-pipelines/templates/validate-package.yml b/tools/ci_build/github/azure-pipelines/templates/validate-package.yml index 5014b315a4083..529cca4586ef6 100644 --- a/tools/ci_build/github/azure-pipelines/templates/validate-package.yml +++ b/tools/ci_build/github/azure-pipelines/templates/validate-package.yml @@ -11,11 +11,11 @@ steps: - task: UsePythonVersion@0 displayName: 'Use Python' inputs: - versionSpec: 3.8 + versionSpec: 3.12 - task: PythonScript@0 displayName: 'Validate Package' inputs: scriptPath: '${{parameters.ScriptPath}}' arguments: '--package_type ${{parameters.PackageType}} --package_name ${{parameters.PackageName}} --package_path ${{parameters.PackagePath}} --platforms_supported ${{parameters.PlatformsSupported}} --verify_nuget_signing ${{parameters.VerifyNugetSigning}}' - workingDirectory: ${{parameters.workingDirectory}} + workingDirectory: ${{parameters.workingDirectory}} diff --git a/tools/ci_build/github/azure-pipelines/templates/win-ci.yml b/tools/ci_build/github/azure-pipelines/templates/win-ci.yml index 2cb7f94470d74..27c97bee23c5d 100644 --- a/tools/ci_build/github/azure-pipelines/templates/win-ci.yml +++ b/tools/ci_build/github/azure-pipelines/templates/win-ci.yml @@ -360,7 +360,7 @@ stages: - task: UsePythonVersion@0 inputs: - versionSpec: '3.8' + versionSpec: '3.12' addToPath: true architecture: ${{ parameters.buildArch }} @@ -397,4 +397,4 @@ stages: parameters: msbuildPlatform: ${{ parameters.msbuildPlatform }} java_artifact_id: ${{ parameters.java_artifact_id }} - buildOnly: false \ No newline at end of file + buildOnly: false diff --git a/tools/ci_build/github/azure-pipelines/templates/win-wasm-ci.yml b/tools/ci_build/github/azure-pipelines/templates/win-wasm-ci.yml index 64e7b6dbb4455..5c18d075fc425 100644 --- a/tools/ci_build/github/azure-pipelines/templates/win-wasm-ci.yml +++ b/tools/ci_build/github/azure-pipelines/templates/win-wasm-ci.yml @@ -76,7 +76,7 @@ jobs: displayName: 'Checkout submodules' - task: UsePythonVersion@0 inputs: - versionSpec: '3.8' + versionSpec: '3.12' addToPath: true architecture: $(buildArch) - task: NodeTool@0 diff --git a/tools/ci_build/github/azure-pipelines/win-qnn-ci-pipeline.yml b/tools/ci_build/github/azure-pipelines/win-qnn-ci-pipeline.yml index fdb6998f53d15..f55f476f70d30 100644 --- a/tools/ci_build/github/azure-pipelines/win-qnn-ci-pipeline.yml +++ b/tools/ci_build/github/azure-pipelines/win-qnn-ci-pipeline.yml @@ -54,7 +54,7 @@ jobs: - task: UsePythonVersion@0 inputs: - versionSpec: '3.8' + versionSpec: '3.12' addToPath: true architecture: $(buildArch)