onnxruntime/tools/ci_build/github/azure-pipelines/build-perf-test-binaries-pipeline.yml
Changming Sun 6db72165eb
Fix python packaging test pipeline (#17204)
### Description
1. Fix python packaging test pipeline. There was an error in
tools/ci_build/github/linux/run_python_tests.sh that it installed a
released version of onnxruntime python package from pypi.org to run the
test. Supposedly it should pick one from the current build.
2. Refactor the pipeline to allow choosing cmake build type from the web
UI when manually trigger a build. Now this feature is for Linux only.
Because I don't want to change too much when we are about to cut a
release branch. After that I will expand it to all platforms. This
feature is useful for debugging pipeline issues, also, we may consider
having a nightly pipeline to run all tests in Debug mode which may catch
extra bugs because in debug mode we can enforce range check.

Test run:
https://aiinfra.visualstudio.com/Lotus/_build/results?buildId=342674&view=results

### Motivation and Context
Currently the pipeline has a crash error. 

AB#18580
2023-08-18 14:51:26 -07:00

44 lines
1.2 KiB
YAML

parameters:
- name: BuildAndroidBinaries
type: boolean
default: true
- name: BuildPythonPackages
type: boolean
default: true
resources:
repositories:
- repository: manylinux
type: Github
endpoint: Microsoft
name: pypa/manylinux
ref: 5eda9aded5462201e6310105728d33016e637ea7
stages:
# build binaries for Android
- ${{ if parameters.BuildAndroidBinaries }}:
- stage: BuildAndroidBinaries
dependsOn: []
jobs:
- template: templates/android-java-api-aar.yml
parameters:
buildConfig: 'Release'
buildSettings: '$(Build.SourcesDirectory)/tools/ci_build/github/android/default_full_aar_build_settings.json'
artifactName: 'onnxruntime-android-full-aar'
job_name_suffix: 'Full'
publish_executables: '1'
pool_name: 'onnxruntime-Ubuntu2004-AMD-CPU'
# build Python packages
# Linux GPU only
- ${{ if parameters.BuildPythonPackages }}:
- template: templates/py-packaging-stage.yml
parameters:
enable_linux_gpu: true
enable_linux_cpu: false
enable_windows_cpu: false
enable_windows_gpu: false
enable_mac_cpu: false
enable_mac_silicon: false
enable_linux_arm: false