Skip to content

Commit 1967706

Browse files
committed
add pipeline job for plugin EP build
1 parent 1529757 commit 1967706

File tree

1 file changed

+90
-0
lines changed

1 file changed

+90
-0
lines changed

.github/workflows/windows_webgpu.yml

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,96 @@ jobs:
155155
working-directory: ${{ github.workspace }}\csharp
156156
continue-on-error: true
157157

158+
webgpu_plugin_build_x64_RelWithDebInfo:
159+
runs-on: [
160+
"self-hosted",
161+
"1ES.Pool=onnxruntime-github-Win2022-GPU-A10",
162+
"JobId=webgpu_plugin_build_x64_RelWithDebInfo-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}"
163+
]
164+
timeout-minutes: 300
165+
env:
166+
OrtPackageId: Microsoft.ML.OnnxRuntime
167+
OnnxRuntimeBuildDirectory: ${{ github.workspace }}
168+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
169+
setVcvars: true
170+
ALLOW_RELEASED_ONNX_OPSET_ONLY: "0"
171+
DocUpdateNeeded: false
172+
NVIDIA_TF32_OVERRIDE: "0"
173+
ONNXRUNTIME_TEST_GPU_DEVICE_ID: "0"
174+
steps:
175+
- name: Checkout
176+
uses: actions/checkout@v6
177+
with:
178+
fetch-depth: 0
179+
submodules: none
180+
181+
- name: Setup Python 3.12
182+
uses: actions/setup-python@v6
183+
with:
184+
python-version: "3.12"
185+
architecture: x64
186+
187+
- name: Locate vcvarsall and Setup Env
188+
uses: ./.github/actions/locate-vcvarsall-and-setup-env
189+
with:
190+
architecture: x64
191+
192+
- name: Install python modules
193+
run: python -m pip install -r tools\ci_build\github\windows\python\requirements.txt
194+
shell: cmd
195+
working-directory: ${{ github.workspace }}
196+
197+
- name: Setup Node.js
198+
uses: actions/setup-node@v6
199+
with:
200+
node-version: "20.x"
201+
202+
- name: Setup .NET
203+
uses: actions/setup-dotnet@v5
204+
env:
205+
PROCESSOR_ARCHITECTURE: x64
206+
with:
207+
dotnet-version: "8.x"
208+
209+
- name: Use Nuget 6.x
210+
uses: nuget/setup-nuget@v2
211+
with:
212+
nuget-version: "6.x"
213+
214+
- name: NuGet restore
215+
run: |
216+
nuget restore packages.config -ConfigFile NuGet.config -PackagesDirectory ${{ github.workspace }}\RelWithDebInfo
217+
shell: cmd
218+
working-directory: ${{ github.workspace }}
219+
220+
- uses: actions/cache@v5
221+
id: onnx-node-tests-cache
222+
with:
223+
path: ${{ github.workspace }}/js/test/
224+
key: onnxnodetests-${{ hashFiles('js/scripts/prepare-onnx-node-tests.ts') }}
225+
226+
- name: Build and Test
227+
shell: pwsh
228+
run: |
229+
python.exe ${{ github.workspace }}\tools\ci_build\build.py `
230+
--config RelWithDebInfo `
231+
--build_dir ${{ github.workspace }} `
232+
--skip_submodule_sync `
233+
--parallel `
234+
--use_binskim_compliant_compile_flags `
235+
--cmake_generator "Visual Studio 17 2022" `
236+
--build_shared_lib `
237+
--enable_onnx_tests `
238+
--use_webgpu shared_lib `
239+
--wgsl_template static `
240+
--use_vcpkg --use_vcpkg_ms_internal_asset_cache `
241+
--cmake_extra_defines `
242+
onnxruntime_BUILD_UNIT_TESTS=ON
243+
if ($lastExitCode -ne 0) {
244+
exit $lastExitCode
245+
}
246+
Remove-Item "${{ github.workspace }}\RelWithDebInfo" -Include "*.obj" -Recurse
247+
158248
webgpu_external_dawn_build_x64_RelWithDebInfo:
159249
runs-on: [
160250
"self-hosted",

0 commit comments

Comments
 (0)