ci : try copying the DLL to build/Release

The motivation for this is that there is a gradle task that copies the
dll from this location and hopefully this will work in github actions
too as I'm struggling to get this to work.
This commit is contained in:
Daniel Bevenius 2025-03-27 15:39:08 +01:00
parent 4f9a7dbb9b
commit 8b1661a667

View File

@ -1022,12 +1022,12 @@ jobs:
- name: Move DLL to correct location
shell: pwsh
run: |
New-Item -Path "build\Release" -ItemType Directory -Force
$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"
Copy-Item -Path $dllPath -Destination "build\Release\whisper.dll" -Force
Write-Host "Copied from $dllPath to build\Release\whisper.dll"
} else {
Write-Host "No DLL found in the downloaded artifact"
exit 1