From 4b671da93d860f102483d37f5dac740d8137e87d Mon Sep 17 00:00:00 2001 From: Harkirat Gill Date: Fri, 2 Oct 2026 13:59:18 -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 ff878850c0..5586e734f2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -560,6 +560,18 @@ jobs: if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }} uses: pr-mpt/actions-commit-hash@v2 + - name: Bundle HIP runtime libraries + if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || 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 == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }} run: |