@@ -413,20 +413,19 @@ jobs:
413413 run : |
414414 echo "VULKAN_SDK_VERSION=$(curl https://vulkan.lunarg.com/sdk/latest/linux.txt)" >> "$GITHUB_ENV"
415415
416- - name : Cache Vulkan SDK
417- id : cache_vulkan_sdk
416+ - name : Use Vulkan SDK Cache
418417 uses : actions/cache@v4
418+ id : cache-sdk
419419 with :
420420 path : ./vulkan_sdk
421421 key : vulkan-sdk-${{ env.VULKAN_SDK_VERSION }}-${{ runner.os }}
422422
423- - name : Install Vulkan SDK
424- if : steps.cache_vulkan_sdk.outputs.cache-hit != 'true'
425- id : vulkan_sdk_install
426- run : |
427- mkdir -p vulkan_sdk
428- cd vulkan_sdk
429- curl --no-progress-meter https://sdk.lunarg.com/sdk/download/latest/linux/vulkan_sdk.tar.xz | tar -Jx --strip-components=1
423+ - name : Setup Vulkan SDK
424+ if : steps.cache-sdk.outputs.cache-hit != 'true'
425+ uses : ./.github/actions/linux-setup-vulkan
426+ with :
427+ path : ./vulkan_sdk
428+ version : ${{ env.VULKAN_SDK_VERSION }}
430429
431430 - name : Build
432431 id : cmake_build
@@ -1111,6 +1110,7 @@ jobs:
11111110 env :
11121111 # The ROCm version must correspond to the version used in the HIP SDK.
11131112 ROCM_VERSION : " 6.4.2"
1113+ # Make sure this is in sync with build-cache.yml
11141114 HIPSDK_INSTALLER_VERSION : " 25.Q3"
11151115
11161116 steps :
@@ -1125,33 +1125,18 @@ jobs:
11251125 7z x rocwmma.deb
11261126 7z x data.tar
11271127
1128- - name : Cache ROCm Installation
1129- id : cache-rocm
1128+ - name : Use ROCm Installation Cache
11301129 uses : actions/cache@v4
1130+ id : cache-rocm
11311131 with :
11321132 path : C:\Program Files\AMD\ROCm
11331133 key : rocm-${{ env.HIPSDK_INSTALLER_VERSION }}-${{ runner.os }}
11341134
1135- - name : Install ROCm
1135+ - name : Setup ROCm
11361136 if : steps.cache-rocm.outputs.cache-hit != 'true'
1137- id : depends
1138- run : |
1139- $ErrorActionPreference = "Stop"
1140- write-host "Downloading AMD HIP SDK Installer"
1141- Invoke-WebRequest -Uri "https://download.amd.com/developer/eula/rocm-hub/AMD-Software-PRO-Edition-${{ env.HIPSDK_INSTALLER_VERSION }}-WinSvr2022-For-HIP.exe" -OutFile "${env:RUNNER_TEMP}\rocm-install.exe"
1142- write-host "Installing AMD HIP SDK"
1143- $proc = Start-Process "${env:RUNNER_TEMP}\rocm-install.exe" -ArgumentList '-install' -NoNewWindow -PassThru
1144- $completed = $proc.WaitForExit(600000)
1145- if (-not $completed) {
1146- Write-Error "ROCm installation timed out after 10 minutes. Killing the process"
1147- $proc.Kill()
1148- exit 1
1149- }
1150- if ($proc.ExitCode -ne 0) {
1151- Write-Error "ROCm installation failed with exit code $($proc.ExitCode)"
1152- exit 1
1153- }
1154- write-host "Completed AMD HIP SDK installation"
1137+ uses : ./.github/actions/windows-setup-rocm
1138+ with :
1139+ version : ${{ env.HIPSDK_INSTALLER_VERSION }}
11551140
11561141 - name : Verify ROCm
11571142 id : verify
0 commit comments