Commit d4bfcd5 for stable-diffusion.cpp
commit d4bfcd5d78cc6d41ec856ddb65b287a6686df108
Author: Harkirat Gill <harkirat.gill@amd.com>
Date: Tue Oct 6 04:42:02 2026 -0400
ci: bundle HIP runtime libraries with Windows ROCm release (#2090)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index ff87885..5586e73 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: |