There was an error while loading. Please reload this page.
2 parents 7437d05 + 3930b7b commit 9cffd0dCopy full SHA for 9cffd0d
1 file changed
.github/workflows/build.yml
@@ -271,8 +271,9 @@ jobs:
271
'nvJitLink_*.dll'
272
)
273
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 }
+ $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" }
276
+ Copy-Item $dll.FullName .\build\bin\Release
277
}
278
7z a sd-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-windows-cuda-${{ matrix.sm }}-x64.zip .\build\bin\Release\*
279
0 commit comments