Skip to content

Commit c0335cf

Browse files
authored
Merge pull request #11 from Phqen1x/fix-powershell-parser
ci: fix PowerShell parser error in Windows CUDA pack step
2 parents 3930b7b + 9cffd0d commit c0335cf

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,17 @@ jobs:
263263
Copy-Item ggml/LICENSE .\build\bin\Release\ggml.txt
264264
Copy-Item LICENSE .\build\bin\Release\stable-diffusion.cpp.txt
265265
$cudaBin = Join-Path $env:CUDA_PATH 'bin'
266-
$runtimeDllPatterns = @('cudart64_*.dll', 'cublas64_*.dll', 'cublasLt64_*.dll', 'curand64_*.dll', 'nvJitLink_*.dll')
266+
$runtimeDllPatterns = @(
267+
'cudart64_*.dll',
268+
'cublas64_*.dll',
269+
'cublasLt64_*.dll',
270+
'curand64_*.dll',
271+
'nvJitLink_*.dll'
272+
)
267273
foreach ($pattern in $runtimeDllPatterns) {
268274
$dll = Get-ChildItem -Path $cudaBin -Filter $pattern -ErrorAction Stop | Sort-Object Name -Descending | Select-Object -First 1
269275
if (-not $dll) { throw "Required CUDA runtime DLL matching '$pattern' was not found in $cudaBin" }
270-
Copy-Item $dll.FullName .\build\bin\Release\
271-
}
276+
Copy-Item $dll.FullName .\build\bin\Release
272277
}
273278
7z a sd-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-windows-cuda-${{ matrix.sm }}-x64.zip .\build\bin\Release\*
274279

0 commit comments

Comments
 (0)