Skip to content

Commit f7c6640

Browse files
committed
Minor fix
1 parent f6d1e53 commit f7c6640

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/build-wheels-oobabooga.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ jobs:
177177
178178
if ($packageVersion -gt [version]'0.2.13' -and $packageVersion -lt [version]'0.2.19')
179179
{
180-
$pyScripts = (dir '.\llama_cpp_cuda\*.py')
181-
$pyScripts.fullname.foreach({New-Item $_ -itemType File -value (cat $_ -raw).replace('import llama_cpp.llama','from . import llama') -force})
180+
$pyScripts = (Get-ChildItem $(Join-Path '.' 'llama_cpp_cuda' '*.py'))
181+
$pyScripts.fullname.foreach({New-Item $_ -itemType File -value (Get-Content $_ -raw).replace('import llama_cpp.llama','from . import llama') -force})
182182
}
183183
184184
- name: Build Wheel

.github/workflows/build-wheels-rocm-full.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ jobs:
172172
173173
if ($packageVersion -gt [version]'0.2.13' -and $packageVersion -lt [version]'0.2.19')
174174
{
175-
$pyScripts = (dir '.\llama_cpp_cuda\*.py')
176-
$pyScripts.fullname.foreach({New-Item $_ -itemType File -value (cat $_ -raw).replace('import llama_cpp.llama','from . import llama') -force})
175+
$pyScripts = (Get-ChildItem $(Join-Path '.' 'llama_cpp_cuda' '*.py'))
176+
$pyScripts.fullname.foreach({New-Item $_ -itemType File -value (Get-Content $_ -raw).replace('import llama_cpp.llama','from . import llama') -force})
177177
}
178178
179179
- name: Build Wheel

0 commit comments

Comments
 (0)