diff --git a/tools/ci_build/github/azure-pipelines/plugin-webgpu-pipeline.yml b/tools/ci_build/github/azure-pipelines/plugin-webgpu-pipeline.yml index a9cfc2139fb95..909010d5b2552 100644 --- a/tools/ci_build/github/azure-pipelines/plugin-webgpu-pipeline.yml +++ b/tools/ci_build/github/azure-pipelines/plugin-webgpu-pipeline.yml @@ -1,5 +1,13 @@ trigger: none +schedules: +- cron: '0 17 * * *' # Daily at 17:00 UTC + displayName: Nightly build + branches: + include: + - main + always: false # Only run if source changed since last successful scheduled run + resources: repositories: - repository: 1esPipelines @@ -16,17 +24,17 @@ parameters: - name: build_windows_arm64 displayName: 'Build Windows ARM64' type: boolean - default: false + default: true - name: build_linux_x64 displayName: 'Build Linux x64' type: boolean - default: false + default: true - name: build_macos_arm64 displayName: 'Build macOS ARM64' type: boolean - default: false + default: true - name: package_version displayName: 'Package Version' diff --git a/tools/ci_build/github/azure-pipelines/stages/plugin-linux-webgpu-stage.yml b/tools/ci_build/github/azure-pipelines/stages/plugin-linux-webgpu-stage.yml index 00e716ff3af26..357bd6027b854 100644 --- a/tools/ci_build/github/azure-pipelines/stages/plugin-linux-webgpu-stage.yml +++ b/tools/ci_build/github/azure-pipelines/stages/plugin-linux-webgpu-stage.yml @@ -49,6 +49,8 @@ stages: parameters: package_version: ${{ parameters.package_version }} + - template: ../templates/setup-feeds-and-python-steps.yml + - template: ../templates/get-docker-image-steps.yml parameters: Dockerfile: tools/ci_build/github/linux/docker/inference/x86_64/python/cuda/Dockerfile diff --git a/tools/ci_build/github/azure-pipelines/stages/plugin-win-webgpu-stage.yml b/tools/ci_build/github/azure-pipelines/stages/plugin-win-webgpu-stage.yml index 352ae77544e93..5a1498c8841f2 100644 --- a/tools/ci_build/github/azure-pipelines/stages/plugin-win-webgpu-stage.yml +++ b/tools/ci_build/github/azure-pipelines/stages/plugin-win-webgpu-stage.yml @@ -89,33 +89,6 @@ stages: env: TMPDIR: "$(Agent.TempDirectory)" - - task: PowerShell@2 - displayName: '[WebGPU] Create .npmrc for WebGPU build' - inputs: - targetType: 'inline' - pwsh: true - script: | - $npmrcPath = Join-Path "$(Build.SourcesDirectory)" "onnxruntime/core/providers/webgpu/wgsl_templates/.npmrc" - $npmrcDir = Split-Path -Parent $npmrcPath - $packageJsonPath = Join-Path $npmrcDir "package.json" - - # Check if package.json exists - if (-not (Test-Path $packageJsonPath)) { - Write-Error "package.json not found at: $packageJsonPath" - throw "package.json does not exist in $npmrcDir" - } - - # Create .npmrc file with required content - $npmrcContent = "registry=${{ parameters.npm_registry_url }}`n`nalways-auth=true" - - Set-Content -Path $npmrcPath -Value $npmrcContent -Encoding UTF8 - Write-Host "Created .npmrc at: $npmrcPath" - - - task: npmAuthenticate@0 - displayName: '[WebGPU] Authenticate npm for WebGPU build' - inputs: - workingFile: '$(Build.SourcesDirectory)/onnxruntime/core/providers/webgpu/wgsl_templates/.npmrc' - - ${{ if eq(parameters.arch, 'arm64') }}: - task: DownloadPipelineArtifact@2 displayName: 'Download WebGPU build tools from x64 build'