ci : use arch for .dll names and enable jna debug

This commit is contained in:
Daniel Bevenius 2025-03-28 08:38:19 +01:00
parent fa8c577b14
commit 4c0c912176
2 changed files with 5 additions and 4 deletions

View File

@ -581,7 +581,7 @@ jobs:
- name: Upload dll
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.jnaPath }}_whisper.dll
name: whisper_${{ matrix.arch }}.dll
path: build/bin/${{ matrix.build }}/whisper.dll
- name: Upload binaries
@ -1020,7 +1020,7 @@ jobs:
- name: Download Windows lib
uses: actions/download-artifact@v4
with:
name: win32-x86-64_whisper.dll
name: whisper_x64.dll
- name: Download SDL2.dll
uses: actions/download-artifact@v4
@ -1037,8 +1037,8 @@ jobs:
run: |
New-Item -Path "build\Release" -ItemType Directory -Force
Copy-Item -Path "whisper.dll" -Destination "build\Release\whisper.dll" -Force
Write-Host "Copied whisper.dll to build\Release\whisper.dll directory"
Copy-Item -Path "whisper_x64.dll" -Destination "build\Release\whisper.dll" -Force
Write-Host "Copied whisper_x64.dll to build\Release\whisper.dll directory"
Copy-Item -Path "SDL2.dll" -Destination "build\Release\SDL2.dll" -Force
Write-Host "Copied SDL2.dll to build\Release\SDL2.dll directory"

View File

@ -10,6 +10,7 @@ import io.github.ggerganov.whispercpp.params.WhisperFullParams;
class JnaDebugHelper {
static {
System.setProperty("jna.debug_load", "true");
System.out.println("JNA Library Path: " + System.getProperty("jna.library.path"));
System.out.println("Working directory: " + System.getProperty("user.dir"));