mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-06 00:03:22 +00:00
### Description reuse EO pool in NPM pipeline. ### Motivation and Context build_web_debug failed in onnxruntime-Win-CPU-2022 but it works in EO pool. Reuse EO pool to make the pipeline work now. When I'm free, I'll try upgrading the chrome in the custom image.
101 lines
3.1 KiB
YAML
101 lines
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)'
|
|
|
|
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:
|
|
pipelines:
|
|
- pipeline: build
|
|
source: 'Zip-Nuget-Java-Nodejs Packaging Pipeline'
|
|
trigger: true
|
|
branch: main
|
|
repositories:
|
|
- repository: manylinux
|
|
type: Github
|
|
endpoint: Microsoft
|
|
name: pypa/manylinux
|
|
ref: 5eda9aded5462201e6310105728d33016e637ea7
|
|
|
|
stages:
|
|
- template: templates/web-ci.yml
|
|
parameters:
|
|
NpmPackagingMode: ${{ variables.NpmPackagingMode }}
|
|
IsReleasePipeline: true
|
|
PoolName: 'onnxruntime-Ubuntu2004-AMD-CPU'
|
|
PackageName: 'onnxruntime-web'
|
|
ExtraBuildArgs: ''
|
|
UseWebPoolName: true
|
|
RunWebGpuTestsForDebugBuild: false
|
|
RunWebGpuTestsForReleaseBuild: true
|
|
WebGpuPoolName: 'onnxruntime-Win2022-webgpu-A10'
|
|
WebCpuPoolName: 'Azure-Pipelines-EO-Windows2022-aiinfra'
|
|
|
|
- template: templates/react-native-ci.yml
|
|
parameters:
|
|
NpmPackagingMode: ${{ variables.NpmPackagingMode }}
|
|
BuildConfig: 'Release'
|
|
PoolName: 'onnxruntime-Ubuntu2004-AMD-CPU'
|
|
PackageName: 'onnxruntime-react-native'
|
|
BuildAndroidAARStageDependsOn: 'Precheck_and_extract_commit'
|
|
|
|
- stage: Download_Node_Package_And_Publish_Validation_Script
|
|
dependsOn:
|
|
- ReactNative_CI
|
|
- Build_web_Release
|
|
- Build_web_Debug
|
|
jobs:
|
|
- job: Download_Node_Package_And_Publish_Validation_Script
|
|
pool: 'Onnxruntime-Win-CPU-2022'
|
|
variables:
|
|
runCodesignValidationInjection: false
|
|
timeoutInMinutes: 10
|
|
steps:
|
|
- download: build
|
|
artifact: 'NPM_packages'
|
|
displayName: 'Download onnxruntime-node Pipeline Artifact'
|
|
|
|
- task: CopyFiles@2
|
|
inputs:
|
|
sourceFolder: '$(Pipeline.Workspace)\build\NPM_packages'
|
|
contents: onnxruntime-*.tgz
|
|
targetFolder: $(Build.ArtifactStagingDirectory)\node-artifacts
|
|
displayName: 'Copy onnxruntime-node Artifacts'
|
|
|
|
- task: PublishPipelineArtifact@0
|
|
inputs:
|
|
artifactName: 'onnxruntime-node'
|
|
targetPath: '$(Build.ArtifactStagingDirectory)\node-artifacts'
|
|
displayName: 'Publish onnxruntime-node Pipeline Artifact'
|
|
|
|
- task: CopyFiles@2
|
|
inputs:
|
|
sourceFolder: $(Build.SourcesDirectory)\tools\ci_build\github\js
|
|
contents: validate-npm-packages.py
|
|
targetFolder: $(Build.ArtifactStagingDirectory)\validation-scripts
|
|
displayName: 'Copy validation scripts'
|
|
|
|
- task: PublishPipelineArtifact@0
|
|
inputs:
|
|
artifactName: 'validation_scripts'
|
|
targetPath: '$(Build.ArtifactStagingDirectory)\validation-scripts'
|
|
displayName: 'Publish validation scripts'
|