mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-04-09 23:28:54 +02:00
ci: move .dll to correct location bindings-java
This commit is contained in:
parent
7129bbfed9
commit
4f9a7dbb9b
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
@ -1013,11 +1013,25 @@ jobs:
|
|||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: win32-x86-64_whisper.dll
|
name: win32-x86-64_whisper.dll
|
||||||
path: bindings/java/build/generated/resources/main/
|
|
||||||
|
|
||||||
- name: Rename DLL
|
- name: List downloaded files
|
||||||
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
ren "bindings\java\build\generated\resources\main\win32-x86-64_whisper.dll" "whisper.dll"
|
Get-ChildItem -Path "." -Recurse -Filter "*.dll"
|
||||||
|
|
||||||
|
- name: Move DLL to correct location
|
||||||
|
shell: pwsh
|
||||||
|
run: |
|
||||||
|
$dllPath = Get-ChildItem -Path "." -Recurse -Filter "*.dll" | Select-Object -First 1 -ExpandProperty FullName
|
||||||
|
if ($dllPath) {
|
||||||
|
$targetDir = "bindings\java\build\generated\resources\main"
|
||||||
|
New-Item -Path $targetDir -ItemType Directory -Force
|
||||||
|
Copy-Item -Path $dllPath -Destination "$targetDir\whisper.dll" -Force
|
||||||
|
Write-Host "Copied from $dllPath to $targetDir\whisper.dll"
|
||||||
|
} else {
|
||||||
|
Write-Host "No DLL found in the downloaded artifact"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user