Skip to content

Commit 7437d05

Browse files
Phqen1xclaude
andcommitted
ci: fix PowerShell parser error in Windows CUDA pack step
Use multi-line array literal format for $runtimeDllPatterns and remove the trailing backslash from the Copy-Item destination path, which was causing an 'Unexpected token }' parser error at the foreach closing brace. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent fa19b41 commit 7437d05

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,16 @@ 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 | Sort-Object Name -Descending | Select-Object -First 1
269-
if ($dll) { Copy-Item $dll.FullName .\build\bin\Release\ }
275+
if ($dll) { Copy-Item $dll.FullName .\build\bin\Release }
270276
}
271277
7z a sd-${{ env.BRANCH_NAME }}-${{ steps.commit.outputs.short }}-windows-cuda-${{ matrix.sm }}-x64.zip .\build\bin\Release\*
272278

0 commit comments

Comments
 (0)