onnxruntime/tools/ci_build/github/azure-pipelines/py-package-build-pipeline.yml
Changming Sun 7b4ce0c1e1
Delete the build scripts that were copied from manylinux project (#12358)
1. Delete the build scripts that were copied from manylinux project. Use "git checkout" instead.
2. Update manylinux version to get python 3.11. Related issue: Python 3.11 support #12343
3. Change the cuda version of linux gpu build job of nuget packaging pipeline from cuda 11.4 to cuda 11.6 to match the TRT job within the same pipeline.. (A lot other places need be updated as well, but I'd prefer to put them in another PR)
4. Make dockerfile names static. For example, replace tools/ci_build/github/linux/docker/$(DockerFile) to tools/ci_build/github/linux/docker/Dockerfile.manylinux2014_cpu . The former one relies on a runtime variable $(DockerFile), Template Parameters are expanded early in processing a pipeline run when most variables are not available. It like C++ macros vs variables.
2022-07-29 18:24:19 -07:00

62 lines
1.7 KiB
YAML

parameters:
- name: enable_linux_cpu
displayName: 'Whether Linux CPU package is built.'
type: boolean
default: true
- name: enable_linux_gpu
displayName: 'Whether Linux GPU package is built.'
type: boolean
default: true
- name: enable_windows_cpu
displayName: 'Whether Windows CPU package is built.'
type: boolean
default: true
- name: enable_windows_gpu
displayName: 'Whether Windows GPU package is built.'
type: boolean
default: true
- name: python_version
displayName: 'Python version used for build'
type: object
default: ["'3.7'", "'3.8'", "'3.9'"]
- name: cpu_build_py_parameters
displayName: 'Extra parameters to pass to build.py for CPU package.'
type: string
default: '--use_openvino CPU_FP32'
- name: gpu_build_py_parameters
displayName: 'Extra parameters to pass to build.py for GPU package.'
type: string
default: ' '
- name: ubuntu_version_linux_cpu
displayName: 'Ubuntu Version for Linux CPU package.'
type: string
default: '20.04'
trigger: none
resources:
repositories:
- repository: manylinux
type: Github
endpoint: Microsoft
name: pypa/manylinux
ref: a8099af1b3e25f0489717ad9c4f9a2e25a8c5b36
stages:
- template: templates/py-packaging-selectable-stage.yml
parameters:
enable_linux_gpu: ${{ parameters.enable_linux_gpu }}
enable_linux_cpu: ${{ parameters.enable_linux_cpu }}
enable_windows_cpu: ${{ parameters.enable_windows_cpu }}
enable_windows_gpu: ${{ parameters.enable_windows_gpu }}
python_version: ${{ parameters.python_version }}
cpu_build_py_parameters: ${{ parameters.cpu_build_py_parameters }}
gpu_build_py_parameters: ${{ parameters.gpu_build_py_parameters }}
ubuntu_version_linux_cpu: ${{ parameters.ubuntu_version_linux_cpu }}