mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
add more check to Web CI on cache restore (#16689)
### Description <!-- Describe your changes. --> ### Motivation and Context Make sure the data is correct.
This commit is contained in:
parent
810512c658
commit
36b121d8c2
2 changed files with 14 additions and 2 deletions
|
|
@ -123,9 +123,15 @@ jobs:
|
|||
key: onnxtestdata | $(Build.SourcesDirectory)\js\scripts\prepare-onnx-node-tests.ts
|
||||
restoreKeys: |
|
||||
onnxtestdata | $(Build.SourcesDirectory)\js\scripts\prepare-onnx-node-tests.ts
|
||||
onnxtestdata
|
||||
path: $(Build.SourcesDirectory)/js/test/
|
||||
cacheHitVar: CACHE_RESTORED
|
||||
displayName: 'Cache ONNX node test data'
|
||||
- task: Bash@3
|
||||
inputs:
|
||||
targetType: 'inline'
|
||||
script: find "$(Build.SourcesDirectory)/js/test/" -type f
|
||||
condition: and(not(canceled()), eq(variables.CACHE_RESTORED, 'true'))
|
||||
displayName: 'List ONNX node test data'
|
||||
- task: PowerShell@2
|
||||
inputs:
|
||||
filePath: '$(Build.SourcesDirectory)/tools/ci_build/github/js/pack-npm-packages.ps1'
|
||||
|
|
|
|||
|
|
@ -131,9 +131,15 @@ jobs:
|
|||
key: onnxtestdata | $(Build.SourcesDirectory)\js\scripts\prepare-onnx-node-tests.ts
|
||||
restoreKeys: |
|
||||
onnxtestdata | $(Build.SourcesDirectory)\js\scripts\prepare-onnx-node-tests.ts
|
||||
onnxtestdata
|
||||
path: $(Build.SourcesDirectory)/js/test/
|
||||
cacheHitVar: CACHE_RESTORED
|
||||
displayName: 'Cache ONNX node test data'
|
||||
- task: Bash@3
|
||||
inputs:
|
||||
targetType: 'inline'
|
||||
script: find "$(Build.SourcesDirectory)/js/test/" -type f
|
||||
condition: and(not(canceled()), eq(variables.CACHE_RESTORED, 'true'))
|
||||
displayName: 'List ONNX node test data'
|
||||
- task: PowerShell@2
|
||||
inputs:
|
||||
filePath: '$(Build.SourcesDirectory)\tools\ci_build\github\js\pack-npm-packages.ps1'
|
||||
|
|
|
|||
Loading…
Reference in a new issue