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
This commit is contained in:
kailums 2024-10-21 22:50:31 +08:00 committed by GitHub
parent 60da4a2ccd
commit 3174e3da57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 26 additions and 26 deletions

View file

@ -40,7 +40,7 @@ stages:
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.8'
versionSpec: '3.12'
addToPath: true
architecture: x64

View file

@ -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"

View file

@ -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'

View file

@ -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'

View file

@ -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'

View file

@ -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

View file

@ -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'

View file

@ -34,7 +34,7 @@ stages:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.9'
versionSpec: '3.12'
addToPath: true
- template: set-version-number-variables-step.yml

View file

@ -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:

View file

@ -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"

View file

@ -62,7 +62,7 @@ stages:
- task: UsePythonVersion@0
inputs:
versionSpec: "3.9"
versionSpec: "3.12"
addToPath: true
architecture: "x64"

View file

@ -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}}

View file

@ -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
buildOnly: false

View file

@ -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

View file

@ -54,7 +54,7 @@ jobs:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.8'
versionSpec: '3.12'
addToPath: true
architecture: $(buildArch)