Skip to content

Commit

Permalink
build wasm with linux (microsoft#18106)
Browse files Browse the repository at this point in the history
### 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.
  • Loading branch information
mszhanyi authored and kleiti committed Mar 22, 2024
1 parent ba98761 commit 7d0ff21
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion tools/ci_build/github/azure-pipelines/post-merge-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions tools/ci_build/github/azure-pipelines/templates/web-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
Expand Down

0 comments on commit 7d0ff21

Please sign in to comment.