From 689ea66c581c37dbcd97624258e0bd26e8a5a264 Mon Sep 17 00:00:00 2001 From: Harkirat Gill Date: Fri, 2 Oct 2026 13:14:09 -0400 Subject: [PATCH] ci: bundle HIP runtime libraries with Windows ROCm release --- .github/workflows/build.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9815a3001a..01f4302a73 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -722,6 +722,18 @@ jobs: if: ${{ github.event_name == 'schedule' || github.event.inputs.create_release == 'true' }} uses: pr-mpt/actions-commit-hash@v2 + - name: Bundle HIP runtime libraries + if: ${{ github.event_name == 'schedule' || github.event.inputs.create_release == 'true' }} + run: | + $ErrorActionPreference = "Stop" + $binPath = (rocm-sdk path --bin).Trim() + if (-not $binPath) { throw "rocm-sdk path --bin returned empty" } + foreach ($dll in @("amdhip64_7.dll", "rocm_kpack.dll", "amd_comgr.dll")) { + $f = Get-ChildItem -Path $binPath -Filter $dll -ErrorAction SilentlyContinue + if (-not $f) { throw "no match for $dll in $binPath" } + Copy-Item $f.FullName -Destination .\build\bin\ -Force + } + - name: Pack artifacts if: ${{ github.event_name == 'schedule' || github.event.inputs.create_release == 'true' }} run: |