diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 71788dabb..f3bd3e223 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -75,13 +75,13 @@ jobs: - name: Build on Windows if: startsWith(matrix.image, 'windows') run: | - SET PATH=%PATH%;C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\ - SET CudaToolkitDir=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2 - cuda_11.2.2_win10_network.exe -s nvcc_11.2 visual_studio_integration_11.2 cudart_11.2 - IF ERRORLEVEL 1 ( - ECHO cuda_11.2.2_win10_network.exe FAILED - EXIT /B 201 - ) + $env:PATH += ';C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin' + $env:CudaToolkitDir = 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.2' + Start-Process -FilePath "cuda_11.2.2_win10_network.exe" -ArgumentList "-s nvcc_11.2 visual_studio_integration_11.2 cudart_11.2" -NoNewWindow -Wait + if ($LASTEXITCODE -ne 0) { + Write-Error "cuda_11.2.2_win10_network.exe FAILED" + exit 201 + } .\build.bat ${{ matrix.options }} ${{ matrix.asm }} - name: Build on Linux