@@ -110,19 +110,42 @@ jobs:
110110
111111 - name : Build and Clean Binaries
112112 working-directory : ${{ runner.temp }}
113+ shell : pwsh
113114 run : |
114115 npm install -g typescript
115116 if ($lastExitCode -ne 0) {
116117 exit $lastExitCode
117118 }
118119 # Execute the build process
119- python.exe ${{ github.workspace }}\tools\ci_build\build.py --update --build --config RelWithDebInfo --build_dir build --skip_submodule_sync --build_csharp --parallel --nvcc_threads 1 --use_binskim_compliant_compile_flags --cmake_generator "Visual Studio 17 2022" --build_shared_lib --build_wheel --build_java --use_cuda --cuda_home="$env:RUNNER_TEMP\v12.8" --enable_cuda_profiling --use_vcpkg --use_vcpkg_ms_internal_asset_cache --enable_transformers_tool_test --cmake_extra_defines CMAKE_CUDA_ARCHITECTURES=86 --cmake_extra_defines onnxruntime_ENABLE_CUDA_EP_INTERNAL_TESTS=ON
120+ python.exe ${env:GITHUB_WORKSPACE}\tools\ci_build\build.py `
121+ --build `
122+ --build_csharp `
123+ --build_dir build `
124+ --build_java `
125+ --build_shared_lib `
126+ --build_wheel `
127+ --cmake_extra_defines CMAKE_CUDA_ARCHITECTURES=86 `
128+ --cmake_extra_defines onnxruntime_ENABLE_CUDA_EP_INTERNAL_TESTS=ON `
129+ --cmake_generator "Ninja" `
130+ --config RelWithDebInfo `
131+ --cuda_home="$env:RUNNER_TEMP\v12.8" `
132+ --enable_cuda_profiling `
133+ --enable_transformers_tool_test `
134+ --nvcc_threads 1 `
135+ --parallel `
136+ --skip_submodule_sync `
137+ --update `
138+ --use_binskim_compliant_compile_flags `
139+ --use_cache `
140+ --use_cuda `
141+ --use_vcpkg `
142+ --use_vcpkg_ms_internal_asset_cache
120143 if ($lastExitCode -ne 0) {
121144 exit $lastExitCode
122145 }
123146
124147 # Clean up the output directory before uploading artifacts
125- $outputDir = "${{ runner.temp }} \build\RelWithDebInfo"
148+ $outputDir = "$env:RUNNER_TEMP \build\RelWithDebInfo"
126149 Write-Host "Cleaning up files from $outputDir..."
127150
128151 Remove-Item -Path "$outputDir\onnxruntime" -Recurse -Force -ErrorAction SilentlyContinue
@@ -134,7 +157,6 @@ jobs:
134157 Remove-Item -Path "$outputDir\CMakeFiles" -Recurse -Force -ErrorAction SilentlyContinue
135158 # Remove intermediate object files as in the original script
136159 Remove-Item -Path $outputDir -Include "*.obj" -Recurse
137- shell : pwsh
138160
139161 - name : Upload build artifacts
140162 uses : actions/upload-artifact@v6
@@ -225,23 +247,44 @@ jobs:
225247 whl-directory : ${{ runner.temp }}\build\RelWithDebInfo\RelWithDebInfo\dist
226248
227249 - name : Run Tests
250+ shell : pwsh
228251 working-directory : ${{ runner.temp }}
229252 run : |
230253 npm install -g typescript
231254 if ($lastExitCode -ne 0) {
232255 exit $lastExitCode
233256 }
234257
235- python.exe ${{ github.workspace }} \tools\python\update_ctest_path.py "${{ runner.temp }} \build\RelWithDebInfo\CTestTestfile.cmake" "${{ runner.temp } }\build\RelWithDebInfo"
258+ python.exe ${env:GITHUB_WORKSPACE} \tools\python\update_ctest_path.py "${env:RUNNER_TEMP} \build\RelWithDebInfo\CTestTestfile.cmake" "${env:RUNNER_TEMP }\build\RelWithDebInfo"
236259 if ($lastExitCode -ne 0) {
237260 exit $lastExitCode
238261 }
239262
240- python.exe ${{ github.workspace }}\tools\ci_build\build.py --test --config RelWithDebInfo --build_dir build --skip_submodule_sync --build_csharp --parallel --nvcc_threads 1 --use_binskim_compliant_compile_flags --cmake_generator "Visual Studio 17 2022" --build_shared_lib --build_wheel --build_java --use_cuda --cuda_home="$env:RUNNER_TEMP\v12.8" --enable_cuda_profiling --use_vcpkg --use_vcpkg_ms_internal_asset_cache --enable_transformers_tool_test --cmake_extra_defines CMAKE_CUDA_ARCHITECTURES=86 --cmake_extra_defines onnxruntime_ENABLE_CUDA_EP_INTERNAL_TESTS=ON
263+ python.exe ${env:GITHUB_WORKSPACE}\tools\ci_build\build.py `
264+ --build_csharp `
265+ --build_dir build `
266+ --build_java `
267+ --build_shared_lib `
268+ --build_wheel `
269+ --cmake_extra_defines CMAKE_CUDA_ARCHITECTURES=86 `
270+ --cmake_extra_defines onnxruntime_ENABLE_CUDA_EP_INTERNAL_TESTS=ON `
271+ --cmake_generator "Ninja" `
272+ --config RelWithDebInfo `
273+ --cuda_home "${env:RUNNER_TEMP}\v12.8" `
274+ --enable_cuda_profiling `
275+ --enable_transformers_tool_test `
276+ --nvcc_threads 1 `
277+ --parallel `
278+ --skip_submodule_sync `
279+ --test `
280+ --use_binskim_compliant_compile_flags `
281+ --use_cache `
282+ --use_cuda `
283+ --use_vcpkg `
284+ --use_vcpkg_ms_internal_asset_cache
241285 if ($lastExitCode -ne 0) {
242286 exit $lastExitCode
243287 }
244- shell : pwsh
245288
246289 - name : Validate C# native delegates
247290 run : python tools\ValidateNativeDelegateAttributes.py
0 commit comments