mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-17 18:40:28 +00:00
1. Update CUDA version from 11.4 to 11.6.
2. Update Manylinux version
3. Upgrade GCC version from 10 to 11 for most x86_64 pipelines. CentOS 7 ARM64 doesn't have GCC 11 yet.
4. Refactor python packaging pipeline:
a. Split Linux GPU build job to two parts, build and test, so that the
build part doesn't need to use a GPU machine
b. Make the Linux GPU build job and Linux CPU build job more similar: share the same bash script and yaml file.
5. Temporarily disable Attention_Mask1D_Fp16_B2_FusedNoPadding because it is causing one of our packaging pipeline to fail. I have created an ADO task for this.
106 lines
No EOL
3.1 KiB
YAML
106 lines
No EOL
3.1 KiB
YAML
parameters:
|
|
- name: NpmPublish
|
|
displayName: 'NPM packages publish configuration'
|
|
type: string
|
|
values:
|
|
- 'nightly (@dev)'
|
|
- 'release candidate (@rc)'
|
|
- 'production (@latest)'
|
|
- 'custom'
|
|
default: 'nightly (@dev)'
|
|
|
|
- name: NodePipelineId
|
|
displayName: 'Node npm package build Id'
|
|
type: string
|
|
default: 'latest'
|
|
|
|
variables:
|
|
# pipeline should define the following varaibles
|
|
# ExtraBuildArgs
|
|
# VersionSuffix
|
|
|
|
${{ if eq(parameters.NpmPublish, 'nightly (@dev)') }}:
|
|
NpmPackagingMode: 'dev'
|
|
${{ if eq(parameters.NpmPublish, 'release candidate (@rc)') }}:
|
|
NpmPackagingMode: 'rc'
|
|
${{ if eq(parameters.NpmPublish, 'production (@latest)') }}:
|
|
NpmPackagingMode: 'release'
|
|
${{ if eq(parameters.NpmPublish, 'custom') }}:
|
|
NpmPackagingMode: '$(VersionSuffix)'
|
|
|
|
resources:
|
|
repositories:
|
|
- repository: manylinux
|
|
type: Github
|
|
endpoint: Microsoft
|
|
name: pypa/manylinux
|
|
ref: 1a61614cabfd6b91c6afd6d9e172cc5b838c65fe
|
|
|
|
stages:
|
|
- template: templates/web-ci.yml
|
|
parameters:
|
|
NpmPackagingMode: ${{ variables.NpmPackagingMode }}
|
|
IsReleasePipeline: true
|
|
PoolName: 'Win-CPU-2021'
|
|
PackageName: 'onnxruntime-web'
|
|
|
|
- stage: Build_React_Native
|
|
dependsOn: Extract_commit
|
|
jobs:
|
|
- template: templates/react-native-ci.yml
|
|
parameters:
|
|
NpmPackagingMode: ${{ variables.NpmPackagingMode }}
|
|
BuildConfig: 'Release'
|
|
PoolName: 'Linux-CPU'
|
|
PackageName: 'onnxruntime-react-native'
|
|
|
|
- stage: Download_Node_Package
|
|
dependsOn:
|
|
- Build_React_Native
|
|
- Build_web_Release
|
|
- Build_web_Debug
|
|
jobs:
|
|
- job: Download_Node_Package
|
|
pool: 'Win-CPU-2021'
|
|
variables:
|
|
runCodesignValidationInjection: false
|
|
timeoutInMinutes: 10
|
|
steps:
|
|
|
|
- ${{ if eq(parameters.NodePipelineId, 'latest') }}:
|
|
- task: DownloadPipelineArtifact@2
|
|
inputs:
|
|
buildType: 'specific'
|
|
project: '530acbc4-21bc-487d-8cd8-348ff451d2ff'
|
|
definition: '940'
|
|
specificBuildWithTriggering: true
|
|
buildVersionToDownload: 'latest'
|
|
artifactName: 'NPM_packages'
|
|
targetPath: '$(Pipeline.Workspace)'
|
|
displayName: 'Download onnxruntime-node Pipeline Artifact'
|
|
|
|
- ${{ if ne(parameters.NodePipelineId, 'latest') }}:
|
|
- task: DownloadPipelineArtifact@2
|
|
inputs:
|
|
buildType: 'specific'
|
|
project: '530acbc4-21bc-487d-8cd8-348ff451d2ff'
|
|
definition: '940'
|
|
buildVersionToDownload: 'specific'
|
|
pipelineId: '${{ parameters.NodePipelineId }}'
|
|
artifactName: 'NPM_packages'
|
|
targetPath: '$(Pipeline.Workspace)'
|
|
displayName: 'Download onnxruntime-node Pipeline Artifact'
|
|
|
|
- task: CopyFiles@2
|
|
inputs:
|
|
sourceFolder: $(Pipeline.Workspace)
|
|
contents: onnxruntime-*.tgz
|
|
targetFolder: $(Build.ArtifactStagingDirectory)
|
|
displayName: 'Copy onnxruntime-node Artifacts'
|
|
|
|
- task: PublishPipelineArtifact@0
|
|
inputs:
|
|
artifactName: 'onnxruntime-node'
|
|
targetPath: '$(Build.ArtifactStagingDirectory)'
|
|
displayName: 'Publish onnxruntime-node Pipeline Artifact'
|
|
|