mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-17 21:10:43 +00:00
Change webgpu CI pipeline to use a preinstalled chrome (#19729)
### Description Change webgpu CI pipeline to use a preinstalled chrome. Hopefully it can increase the stability. Now the chrome got from puppeteer often failed to start.
This commit is contained in:
parent
acbfc29f27
commit
ed550b5fe5
1 changed files with 1 additions and 12 deletions
|
|
@ -31,6 +31,7 @@ jobs:
|
|||
variables:
|
||||
webgpuCommandlineExtraFlags: '--chromium-flags=--ignore-gpu-blocklist --chromium-flags=--gpu-vendor-id=0x10de'
|
||||
runCodesignValidationInjection: false
|
||||
CHROME_BIN: 'C:\Program Files\Google\Chrome\Application\chrome.exe'
|
||||
timeoutInMinutes: 60
|
||||
workspace:
|
||||
clean: all
|
||||
|
|
@ -95,18 +96,6 @@ jobs:
|
|||
targetFolder: $(Build.SourcesDirectory)\js\web\lib\wasm\binding
|
||||
flattenFolders: true
|
||||
displayName: 'Binplace js files'
|
||||
- script: |
|
||||
npm i -g puppeteer
|
||||
workingDirectory: '$(Build.SourcesDirectory)'
|
||||
displayName: 'Use puppeteer to prepare Chrome for tests'
|
||||
- script: |
|
||||
FOR /F "tokens=* USEBACKQ" %%F IN (`where /r %HOMEDRIVE%%HOMEPATH%\.cache\puppeteer chrome.exe`) DO (
|
||||
SET var=%%F
|
||||
ECHO found chrome.exe: %%F
|
||||
)
|
||||
ECHO ##vso[task.setvariable variable=CHROME_BIN;]%var%
|
||||
workingDirectory: '$(Build.SourcesDirectory)'
|
||||
displayName: 'Set CHROME_BIN'
|
||||
- script: |
|
||||
npm ci
|
||||
workingDirectory: '$(Build.SourcesDirectory)\js'
|
||||
|
|
|
|||
Loading…
Reference in a new issue