From 8b1661a667b1b966cd782d082bf024ae75b76f41 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Thu, 27 Mar 2025 15:39:08 +0100 Subject: [PATCH] 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. --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 66958ec5..3895bfd4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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