Skip to content

Commit a779077

Browse files
authored
WebGPU plugin EP pipeline updates (#28121)
### Description <!-- Describe your changes. --> - Fix issue with custom .npmrc file not being found by tools/ci_build/github/linux/build_webgpu_plugin_package.sh (follow up to #28079) - Set build-enabled parameters to true by default - Configure nightly build in yaml - Remove unnecessary NPM configuration in Windows build - now, it is handled by templates/setup-build-tools.yml ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. --> Fix pipeline issue. Build all supported platforms nightly.
1 parent 9e1621d commit a779077

File tree

3 files changed

+13
-30
lines changed

3 files changed

+13
-30
lines changed

tools/ci_build/github/azure-pipelines/plugin-webgpu-pipeline.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
trigger: none
22

3+
schedules:
4+
- cron: '0 17 * * *' # Daily at 17:00 UTC
5+
displayName: Nightly build
6+
branches:
7+
include:
8+
- main
9+
always: false # Only run if source changed since last successful scheduled run
10+
311
resources:
412
repositories:
513
- repository: 1esPipelines
@@ -16,17 +24,17 @@ parameters:
1624
- name: build_windows_arm64
1725
displayName: 'Build Windows ARM64'
1826
type: boolean
19-
default: false
27+
default: true
2028

2129
- name: build_linux_x64
2230
displayName: 'Build Linux x64'
2331
type: boolean
24-
default: false
32+
default: true
2533

2634
- name: build_macos_arm64
2735
displayName: 'Build macOS ARM64'
2836
type: boolean
29-
default: false
37+
default: true
3038

3139
- name: package_version
3240
displayName: 'Package Version'

tools/ci_build/github/azure-pipelines/stages/plugin-linux-webgpu-stage.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ stages:
4949
parameters:
5050
package_version: ${{ parameters.package_version }}
5151

52+
- template: ../templates/setup-feeds-and-python-steps.yml
53+
5254
- template: ../templates/get-docker-image-steps.yml
5355
parameters:
5456
Dockerfile: tools/ci_build/github/linux/docker/inference/x86_64/python/cuda/Dockerfile

tools/ci_build/github/azure-pipelines/stages/plugin-win-webgpu-stage.yml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -89,33 +89,6 @@ stages:
8989
env:
9090
TMPDIR: "$(Agent.TempDirectory)"
9191
92-
- task: PowerShell@2
93-
displayName: '[WebGPU] Create .npmrc for WebGPU build'
94-
inputs:
95-
targetType: 'inline'
96-
pwsh: true
97-
script: |
98-
$npmrcPath = Join-Path "$(Build.SourcesDirectory)" "onnxruntime/core/providers/webgpu/wgsl_templates/.npmrc"
99-
$npmrcDir = Split-Path -Parent $npmrcPath
100-
$packageJsonPath = Join-Path $npmrcDir "package.json"
101-
102-
# Check if package.json exists
103-
if (-not (Test-Path $packageJsonPath)) {
104-
Write-Error "package.json not found at: $packageJsonPath"
105-
throw "package.json does not exist in $npmrcDir"
106-
}
107-
108-
# Create .npmrc file with required content
109-
$npmrcContent = "registry=${{ parameters.npm_registry_url }}`n`nalways-auth=true"
110-
111-
Set-Content -Path $npmrcPath -Value $npmrcContent -Encoding UTF8
112-
Write-Host "Created .npmrc at: $npmrcPath"
113-
114-
- task: npmAuthenticate@0
115-
displayName: '[WebGPU] Authenticate npm for WebGPU build'
116-
inputs:
117-
workingFile: '$(Build.SourcesDirectory)/onnxruntime/core/providers/webgpu/wgsl_templates/.npmrc'
118-
11992
- ${{ if eq(parameters.arch, 'arm64') }}:
12093
- task: DownloadPipelineArtifact@2
12194
displayName: 'Download WebGPU build tools from x64 build'

0 commit comments

Comments
 (0)