File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff 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 : |
You can’t perform that action at this time.
0 commit comments