mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-25 02:50:42 +00:00
### Description <!-- Describe your changes. --> Old pool | New pool | Notes -- | -- | -- onnxruntime-Win-CPU-2019 | onnxruntime-Win-CPU-2022 | onnxruntime-Win2019-CPU-training | onnxruntime-Win2022-CPU-training-AMD | onnxruntime-Win2019-CPU-training-AMD | onnxruntime-Win2022-CPU-training-AMD | Same as the above onnxruntime-Win2019-GPU-dml-A10 | Need be created | You need to create a new image for it first onnxruntime-Win2019-GPU-T4 | onnxruntime-Win2022-GPU-T4 | onnxruntime-Win2019-GPU-training-T4 | onnxruntime-Win2022-GPU-T4 | Same as the above because we do not have many T4 GPUs onnxruntime-tensorrt8-winbuild-T4| TBD|TBD Win-CPU-2021|onnxruntime-Win-CPU-2022| will do it in next PR Win-CPU-2019|onnxruntime-Win2022-Intel-CPU'| Intel CPU needed for win-ci-pipeline.yml -> `stage: x64_release_dnnl` <br class="Apple-interchange-newline"> ### Motivation and Context With vs2022 we can take the advantage of 64bit compiler. It also with better c++20 support
126 lines
3.6 KiB
YAML
126 lines
3.6 KiB
YAML
parameters:
|
|
- name: NpmPackagingMode
|
|
displayName: 'NPM packages publish configuration'
|
|
type: string
|
|
default: 'dev'
|
|
- name: IsReleasePipeline
|
|
displayName: 'Npm packaging pipeline'
|
|
type: boolean
|
|
default: false
|
|
- name: PoolName
|
|
displayName: 'Agent pool name'
|
|
type: string
|
|
default: 'onnxruntime-Win-CPU-2022'
|
|
- name: PackageName
|
|
displayName: 'Package name'
|
|
type: string
|
|
default: 'NPM_packages'
|
|
- name: BuildStaticLib
|
|
displayName: 'Build static library'
|
|
type: boolean
|
|
default: false
|
|
- name: BuildJsep
|
|
displayName: 'Build JSEP'
|
|
type: boolean
|
|
default: true
|
|
|
|
- name: ExtraBuildArgs
|
|
displayName: 'Extra build command line arguments'
|
|
type: string
|
|
|
|
|
|
stages:
|
|
- stage: Extract_commit
|
|
jobs:
|
|
- job: Extract_commit
|
|
pool: ${{ parameters.PoolName }}
|
|
variables:
|
|
runCodesignValidationInjection: false
|
|
timeoutInMinutes: 30
|
|
workspace:
|
|
clean: all
|
|
steps:
|
|
- checkout: none
|
|
fetchDepth: 1
|
|
submodules: false
|
|
- script: |
|
|
echo.$(Build.SourceVersion)
|
|
echo.$(Build.SourceVersion)>$(Build.ArtifactStagingDirectory)\__commit.txt
|
|
- task: PublishPipelineArtifact@0
|
|
displayName: 'Publish Pipeline Artifact'
|
|
inputs:
|
|
artifactName: '__commit'
|
|
targetPath: '$(Build.ArtifactStagingDirectory)'
|
|
|
|
- stage: Build_wasm_Debug
|
|
dependsOn: Extract_commit
|
|
jobs:
|
|
- template: win-wasm-ci.yml
|
|
parameters:
|
|
CommitOverride: true
|
|
BuildConfig: 'Debug'
|
|
ExtraBuildArgs: '--use_extensions --cmake_extra_defines onnxruntime_WEBASSEMBLY_DEFAULT_EXTENSION_FLAGS=ON ${{ parameters.ExtraBuildArgs }}'
|
|
PoolName: ${{ parameters.PoolName }}
|
|
BuildJsep: ${{ parameters.BuildJsep }}
|
|
|
|
- stage: Build_web_Debug
|
|
dependsOn: Build_wasm_Debug
|
|
jobs:
|
|
- template: win-web-ci.yml
|
|
parameters:
|
|
CommitOverride: true
|
|
BuildConfig: 'Debug'
|
|
NpmPackagingMode: ${{ parameters.NpmPackagingMode }}
|
|
PoolName: ${{ parameters.PoolName }}
|
|
PackageName: ${{ parameters.PackageName }}
|
|
|
|
- stage: Build_wasm_Release
|
|
dependsOn: Extract_commit
|
|
jobs:
|
|
- template: win-wasm-ci.yml
|
|
parameters:
|
|
CommitOverride: true
|
|
BuildConfig: 'Release'
|
|
ExtraBuildArgs: '--target onnxruntime_webassembly --skip_tests --enable_wasm_api_exception_catching --disable_rtti --use_extensions --cmake_extra_defines onnxruntime_WEBASSEMBLY_DEFAULT_EXTENSION_FLAGS=ON ${{ parameters.ExtraBuildArgs }}'
|
|
PoolName: ${{ parameters.PoolName }}
|
|
BuildJsep: ${{ parameters.BuildJsep }}
|
|
|
|
- ${{ if eq(parameters.BuildStaticLib, 'true') }}:
|
|
- stage: Build_wasm_Release_static_library
|
|
dependsOn: Extract_commit
|
|
jobs:
|
|
- template: win-wasm-ci.yml
|
|
parameters:
|
|
CommitOverride: true
|
|
BuildConfig: 'Release'
|
|
ExtraBuildArgs: '${{ parameters.ExtraBuildArgs }}'
|
|
PoolName: ${{ parameters.PoolName }}
|
|
SkipPublish: true
|
|
TimeoutInMinutes: 270
|
|
|
|
- stage: Build_web_Release
|
|
dependsOn: Build_wasm_Release
|
|
jobs:
|
|
- template: win-web-ci.yml
|
|
parameters:
|
|
CommitOverride: true
|
|
BuildConfig: 'Release'
|
|
NpmPackagingMode: ${{ parameters.NpmPackagingMode }}
|
|
PoolName: ${{ parameters.PoolName }}
|
|
PackageName: ${{ parameters.PackageName }}
|
|
|
|
- ${{ if ne(parameters.IsReleasePipeline, true) }}:
|
|
- stage: Test_web_BrowserStack
|
|
dependsOn: Build_wasm_Release
|
|
jobs:
|
|
- template: web-browserstack-ci.yml
|
|
parameters:
|
|
CommitOverride: true
|
|
|
|
- ${{ if ne(parameters.IsReleasePipeline, true) }}:
|
|
- stage: Test_web_MultiBrowsers
|
|
dependsOn: Build_wasm_Release
|
|
jobs:
|
|
- template: win-web-multi-browsers.yml
|
|
parameters:
|
|
CommitOverride: true
|