Skip to content

Commit

Permalink
update win azure ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Taka152 committed Dec 17, 2024
1 parent 8e03735 commit db3062b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .pipelines/stages/jobs/steps/capi-win-step.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ steps:
condition: eq(variables['ep'], 'cuda')
workingDirectory: '$(Build.Repository.LocalPath)'

- powershell: |
$exePath = "$env:TEMP\rustup-init.exe"
(New-Object Net.WebClient).DownloadFile('https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe', $exePath)
& $exePath -y --default-toolchain=1.82.0
Add-Content $env:GITHUB_PATH "$env:USERPROFILE\.cargo\bin"
displayName: 'Install Rust Toolchain'

- powershell: |
cmake --preset windows_$(arch)_$(ep)_$(build_config) -T cuda='$(Build.Repository.LocalPath)\cuda_sdk\v$(cuda_version)'
displayName: 'Configure CMake C API with CUDA'
Expand Down

0 comments on commit db3062b

Please sign in to comment.