mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-04-10 18:48:21 +02:00
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:
parent
4f9a7dbb9b
commit
8b1661a667
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user