Skip to content

Commit 8b1661a

Browse files
committed
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.
1 parent 4f9a7db commit 8b1661a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,12 +1022,12 @@ jobs:
10221022
- name: Move DLL to correct location
10231023
shell: pwsh
10241024
run: |
1025+
New-Item -Path "build\Release" -ItemType Directory -Force
1026+
10251027
$dllPath = Get-ChildItem -Path "." -Recurse -Filter "*.dll" | Select-Object -First 1 -ExpandProperty FullName
10261028
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"
1029+
Copy-Item -Path $dllPath -Destination "build\Release\whisper.dll" -Force
1030+
Write-Host "Copied from $dllPath to build\Release\whisper.dll"
10311031
} else {
10321032
Write-Host "No DLL found in the downloaded artifact"
10331033
exit 1

0 commit comments

Comments
 (0)