build wasm with linux (#18106)

### Description
Make all build_wasm tasks (NPM packaging and post merge)run on Linux.
Enable web gpu test in npm package pipeline too.


### Motivation and Context
Even on Windows, build_wasm is running in cygwin.
So, it could save a lot of time to run it on Linux.
This commit is contained in:
Yi Zhang 2023-11-14 14:42:11 +08:00 committed by GitHub
parent 897c1c1f05
commit 0b16185223
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 5 deletions

View file

@ -41,9 +41,14 @@ stages:
parameters:
NpmPackagingMode: ${{ variables.NpmPackagingMode }}
IsReleasePipeline: true
PoolName: 'Azure-Pipelines-EO-Windows2022-aiinfra'
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:

View file

@ -4,9 +4,11 @@ stages:
parameters:
NpmPackagingMode: 'dev'
IsReleasePipeline: true
PoolName: 'aiinfra-Win-CPU-2022-web-beta'
PoolName: 'onnxruntime-Ubuntu2004-AMD-CPU'
BuildStaticLib: true
ExtraBuildArgs: ''
UseWebPoolName: true
WebCpuPoolName: 'Azure-Pipelines-EO-Windows2022-aiinfra'
# This stage is to test if the combined build works on
# o Windows ARM64

View file

@ -26,7 +26,7 @@ parameters:
- name: WASMTemplate
type: string
default: win-wasm-ci.yml
default: linux-wasm-ci.yml
# parameter couldn't be compared by string, so add one boolean parameter.
- name: UseWebPoolName
type: boolean
@ -39,10 +39,10 @@ parameters:
default: false
- name: WebGpuPoolName
type: string
default: ''
default: 'onnxruntime-Win2022-webgpu-A10'
- name: WebCpuPoolName
type: string
default: ''
default: 'onnxruntime-Win-CPU-2022-web'
- name: ExtraBuildArgs
displayName: 'Extra build command line arguments'