mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
### Description The Web CI pipeline uses three different Windows machine pools: 1. onnxruntime-Win2022-webgpu-A10 2. onnxruntime-Win2022-VS2022-webgpu-A10 3. onnxruntime-Win-CPU-2022-web This PR merges them together to reduce ongoing maintenance cost.
66 lines
1.6 KiB
YAML
66 lines
1.6 KiB
YAML
##### start trigger Don't edit it manually, Please do edit set-trigger-rules.py ####
|
|
### please do rerun set-trigger-rules.py ###
|
|
trigger:
|
|
branches:
|
|
include:
|
|
- main
|
|
- rel-*
|
|
paths:
|
|
exclude:
|
|
- docs/**
|
|
- README.md
|
|
- CONTRIBUTING.md
|
|
- BUILD.md
|
|
pr:
|
|
branches:
|
|
include:
|
|
- main
|
|
- rel-*
|
|
paths:
|
|
exclude:
|
|
- docs/**
|
|
- README.md
|
|
- CONTRIBUTING.md
|
|
- BUILD.md
|
|
#### end trigger ####
|
|
|
|
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 variables
|
|
# 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)'
|
|
|
|
stages:
|
|
- template: templates/web-ci.yml
|
|
parameters:
|
|
NpmPackagingMode: ${{ variables.NpmPackagingMode }}
|
|
IsReleasePipeline: false
|
|
PoolName: 'onnxruntime-Ubuntu2204-AMD-CPU'
|
|
BuildStaticLib: true
|
|
ExtraBuildArgs: $(ExtraBuildArgs)
|
|
WASMTemplate: linux-wasm-ci.yml
|
|
UseWebPoolName: true
|
|
RunWebGpuTestsForDebugBuild: false
|
|
RunWebGpuTestsForReleaseBuild: true
|
|
WebGpuPoolName: 'onnxruntime-Win2022-VS2022-webgpu-A10'
|
|
WebCpuPoolName: 'onnxruntime-Win2022-VS2022-webgpu-A10'
|
|
WithCache: false
|