[CI] Revise Windows HIP SDK dependency.
This commit is contained in:
parent
17af40c848
commit
cb5fb0e633
11
.github/workflows/rust.yml
vendored
11
.github/workflows/rust.yml
vendored
|
@ -87,9 +87,20 @@ jobs:
|
|||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
- name: Install AMD HIP SDK
|
||||
run: |
|
||||
C:\msys64\usr\bin\wget.exe https://download.amd.com/developer/eula/rocm-hub/AMD-Software-PRO-Edition-23.Q4-Win10-Win11-For-HIP.exe -O "amdgpu-install.exe"
|
||||
.\amdgpu-install.exe -Install -View:1
|
||||
Start-Sleep -Seconds 60
|
||||
$setupId = (Get-Process ATISetup).id
|
||||
Wait-Process -Id $setupId
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Build
|
||||
run: |
|
||||
$ROCm_PATH = "C:\Program Files\AMD\ROCm"
|
||||
$Env:HIP_PATH = "$ROCm_PATH\$(Get-ChildItem -Path $ROCm_PATH -Name)"
|
||||
$Env:PATH = "$Env:HIP_PATH\bin;$Env:PATH"
|
||||
$Env:HIP_PATH = "$Env:HIP_PATH\"
|
||||
cargo xtask zip -r
|
||||
Expand-Archive -Path target/release/zluda.zip -DestinationPath target/release
|
||||
# https://stackoverflow.com/a/74033027
|
||||
|
|
Loading…
Reference in a new issue