Skip to content

Commit d75f7b0

Browse files
committed
add ci on windows
1 parent b2634fd commit d75f7b0

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.github/workflows/windows_webgpu.yml

+20-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
webgpu_build_x64_RelWithDebInfo:
2020
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Win2022-GPU-A10"]
2121
timeout-minutes: 300
22+
strategy:
23+
matrix:
24+
vcpkg_option: [novcpkg, vcpkg]
2225
env:
2326
OrtPackageId: Microsoft.ML.OnnxRuntime
2427
OnnxRuntimeBuildDirectory: ${{ github.workspace }}
@@ -107,7 +110,23 @@ jobs:
107110
- name: Build and Test
108111
shell: pwsh
109112
run: |
110-
python.exe ${{ github.workspace }}\tools\ci_build\build.py --config RelWithDebInfo --build_dir ${{ github.workspace }} --skip_submodule_sync --build_csharp --parallel --use_binskim_compliant_compile_flags --cmake_generator "Visual Studio 17 2022" --build_shared_lib --enable_onnx_tests --build_nodejs --use_webgpu --cmake_extra_defines onnxruntime_BUILD_UNIT_TESTS=ON onnxruntime_BUILD_DAWN_MONOLITHIC_LIBRARY=ON
113+
$vcpkgFlag = if ("${{ matrix.vcpkg_option }}" -eq "vcpkg") { "--use_vcpkg" } else { "" }
114+
python.exe ${{ github.workspace }}\tools\ci_build\build.py `
115+
--config RelWithDebInfo `
116+
--build_dir ${{ github.workspace }} `
117+
--skip_submodule_sync `
118+
--build_csharp `
119+
--parallel `
120+
--use_binskim_compliant_compile_flags `
121+
--cmake_generator "Visual Studio 17 2022" `
122+
--build_shared_lib `
123+
--enable_onnx_tests `
124+
--build_nodejs `
125+
--use_webgpu `
126+
$vcpkgFlag `
127+
--cmake_extra_defines `
128+
onnxruntime_BUILD_UNIT_TESTS=ON `
129+
onnxruntime_BUILD_DAWN_MONOLITHIC_LIBRARY=ON
111130
if ($lastExitCode -ne 0) {
112131
exit $lastExitCode
113132
}

0 commit comments

Comments
 (0)