Skip to content

Commit d2d8e79

Browse files
committed
Minor fix
1 parent f6d1e53 commit d2d8e79

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,10 @@ jobs:
175175
New-Item 'pyproject.toml' -itemType File -value $newpyproject -force
176176
New-Item 'CMakeLists.txt' -itemType File -value $cmakelists.Replace('llama_cpp','llama_cpp_cuda') -force
177177
178-
if ($packageVersion -gt [version]'0.2.13' -and $packageVersion -lt [version]'0.2.19')
178+
if ($packageVersion -gt [version]'0.2.13')
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@ jobs:
170170
New-Item 'pyproject.toml' -itemType File -value $newpyproject -force
171171
New-Item 'CMakeLists.txt' -itemType File -value $cmakelists.Replace('llama_cpp','llama_cpp_cuda') -force
172172
173-
if ($packageVersion -gt [version]'0.2.13' -and $packageVersion -lt [version]'0.2.19')
173+
if ($packageVersion -gt [version]'0.2.13')
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)