Skip to content

Commit 4f9a7db

Browse files
committed
ci: move .dll to correct location bindings-java
1 parent 7129bbf commit 4f9a7db

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,11 +1013,25 @@ jobs:
10131013
uses: actions/download-artifact@v4
10141014
with:
10151015
name: win32-x86-64_whisper.dll
1016-
path: bindings/java/build/generated/resources/main/
10171016

1018-
- name: Rename DLL
1017+
- name: List downloaded files
1018+
shell: pwsh
10191019
run: |
1020-
ren "bindings\java\build\generated\resources\main\win32-x86-64_whisper.dll" "whisper.dll"
1020+
Get-ChildItem -Path "." -Recurse -Filter "*.dll"
1021+
1022+
- name: Move DLL to correct location
1023+
shell: pwsh
1024+
run: |
1025+
$dllPath = Get-ChildItem -Path "." -Recurse -Filter "*.dll" | Select-Object -First 1 -ExpandProperty FullName
1026+
if ($dllPath) {
1027+
$targetDir = "bindings\java\build\generated\resources\main"
1028+
New-Item -Path $targetDir -ItemType Directory -Force
1029+
Copy-Item -Path $dllPath -Destination "$targetDir\whisper.dll" -Force
1030+
Write-Host "Copied from $dllPath to $targetDir\whisper.dll"
1031+
} else {
1032+
Write-Host "No DLL found in the downloaded artifact"
1033+
exit 1
1034+
}
10211035
10221036
- name: Build
10231037
run: |

0 commit comments

Comments
 (0)