From 73bb113fc7dc99db2a1ddea25b7ef19e92140816 Mon Sep 17 00:00:00 2001 From: Ken VanDine Date: Sun, 31 May 2026 22:38:08 -0400 Subject: [PATCH] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index af439e5..ea9cd5e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -263,8 +263,10 @@ jobs: $cudaBin = Join-Path $env:CUDA_PATH 'bin' $runtimeDllPatterns = @('cudart64_*.dll', 'cublas64_*.dll', 'cublasLt64_*.dll', 'curand64_*.dll', 'nvJitLink_*.dll') foreach ($pattern in $runtimeDllPatterns) { - $dll = Get-ChildItem -Path $cudaBin -Filter $pattern | Sort-Object Name -Descending | Select-Object -First 1 - if ($dll) { Copy-Item $dll.FullName .\build\bin\Release\ } + $dll = Get-ChildItem -Path $cudaBin -Filter $pattern -ErrorAction Stop | Sort-Object Name -Descending | Select-Object -First 1 + if (-not $dll) { throw "Required CUDA runtime DLL matching '$pattern' was not found in $cudaBin" } + Copy-Item $dll.FullName .\build\bin\Release\ + } } 7z a sd-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-windows-cuda-${{ matrix.sm }}-x64.zip .\build\bin\Release\*