Skip to content

Commit 9cffd0d

Browse files
authored
Merge origin/lemonade into fix-powershell-parser
2 parents 7437d05 + 3930b7b commit 9cffd0d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,9 @@ jobs:
271271
'nvJitLink_*.dll'
272272
)
273273
foreach ($pattern in $runtimeDllPatterns) {
274-
$dll = Get-ChildItem -Path $cudaBin -Filter $pattern | Sort-Object Name -Descending | Select-Object -First 1
275-
if ($dll) { Copy-Item $dll.FullName .\build\bin\Release }
274+
$dll = Get-ChildItem -Path $cudaBin -Filter $pattern -ErrorAction Stop | Sort-Object Name -Descending | Select-Object -First 1
275+
if (-not $dll) { throw "Required CUDA runtime DLL matching '$pattern' was not found in $cudaBin" }
276+
Copy-Item $dll.FullName .\build\bin\Release
276277
}
277278
7z a sd-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-windows-cuda-${{ matrix.sm }}-x64.zip .\build\bin\Release\*
278279

0 commit comments

Comments
 (0)