Skip to content

Commit

Permalink
Remove training from web ci pipeline (#22082)
Browse files Browse the repository at this point in the history
### Description
Remove training from web ci pipeline


### Motivation and Context
  • Loading branch information
snnn authored Sep 13, 2024
1 parent 904b850 commit 59b7b6b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
21 changes: 0 additions & 21 deletions tools/ci_build/github/azure-pipelines/templates/linux-wasm-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ parameters:
type: boolean
default: false

- name: BuildTraining
type: boolean
default: true

- name: WithCache
type: boolean
default: false
Expand Down Expand Up @@ -116,19 +112,6 @@ jobs:
DisplayName: 'Build and test (browser) (simd + threads)'
WithCache: ${{ parameters.WithCache }}

- ${{ if eq(parameters.BuildTraining, true) }}:
- template: build-linux-wasm-step.yml
parameters:
Today: $(Today)
${{ if eq(parameters.BuildStaticLib, true)}}:
AdditionalKey: wasm_training | ${{ parameters.BuildConfig }} | static
${{ else }}:
AdditionalKey: wasm_training | ${{ parameters.BuildConfig }}
CacheDir: $(ORT_CACHE_DIR)/wasm_training
Arguments: '$(CommonBuildArgs) --build_dir $(Build.BinariesDirectory)/wasm_training --enable_training_apis --target onnxruntime_webassembly --skip_tests'
DisplayName: 'Build (training + simd + threads)'
WithCache: ${{ parameters.WithCache }}

- ${{ if eq(parameters.BuildJsep, true) }}:
- template: build-linux-wasm-step.yml
parameters:
Expand All @@ -150,10 +133,6 @@ jobs:
cp $(Build.BinariesDirectory)/wasm_inferencing_jsep/${{ parameters.BuildConfig }}/ort-wasm-simd-threaded.jsep.wasm $(Build.ArtifactStagingDirectory)
cp $(Build.BinariesDirectory)/wasm_inferencing_jsep/${{ parameters.BuildConfig }}/ort-wasm-simd-threaded.jsep.mjs $(Build.ArtifactStagingDirectory)
fi
if [ -d $(Build.BinariesDirectory)/wasm_training ]; then
cp $(Build.BinariesDirectory)/wasm_training/${{ parameters.BuildConfig }}/ort-training-wasm-simd-threaded.wasm $(Build.ArtifactStagingDirectory)
cp $(Build.BinariesDirectory)/wasm_training/${{ parameters.BuildConfig }}/ort-training-wasm-simd-threaded.mjs $(Build.ArtifactStagingDirectory)
fi
displayName: 'Create Artifacts'
- ${{ if eq(parameters.SkipPublish, false) }}:
- task: PublishPipelineArtifact@0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,7 @@ jobs:
workingDirectory: '$(Build.SourcesDirectory)\js\web'
displayName: 'E2E package consuming test'
condition: and(succeeded(), eq('${{ parameters.BuildConfig }}', 'Release'))
- script: |
npm run test:training:e2e
workingDirectory: '$(Build.SourcesDirectory)\js\web'
displayName: 'E2E training package test'
condition: and(succeeded(), eq('${{ parameters.BuildConfig }}', 'Release'))
- task: CopyFiles@2
inputs:
sourceFolder: $(Build.SourcesDirectory)\js\common
Expand Down

0 comments on commit 59b7b6b

Please sign in to comment.