Skip to content

Commit 1b76698

Browse files
committed
ci : download SDL2.dll and copy it to the resources directory
1 parent f3c9030 commit 1b76698

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -846,6 +846,12 @@ jobs:
846846
if: matrix.sdl2 == 'ON'
847847
run: copy "$env:SDL2_DIR/../lib/${{ matrix.arch }}/SDL2.dll" build/bin/${{ matrix.build }}
848848

849+
- name: Upload SDL2.dll
850+
uses: actions/upload-artifact@v4
851+
with:
852+
name: SDL2-dll
853+
path: build/bin/${{ matrix.build }}/SDL2.dll
854+
849855
- name: Upload binaries
850856
uses: actions/upload-artifact@v4
851857
with:
@@ -1014,6 +1020,11 @@ jobs:
10141020
with:
10151021
name: win32-x86-64_whisper.dll
10161022

1023+
- name: Download SDL2.dll
1024+
uses: actions/download-artifact@v4
1025+
with:
1026+
name: SDL2-dll
1027+
10171028
- name: List downloaded files
10181029
shell: pwsh
10191030
run: |
@@ -1033,6 +1044,9 @@ jobs:
10331044
exit 1
10341045
}
10351046
1047+
Copy-Item -Path "SDL2.dll" -Destination "bindings\java\build\generated\resources\main\SDL2.dll" -Force
1048+
Write-Host "Copied SDL2.dll to resources directory"
1049+
10361050
- name: Build
10371051
run: |
10381052
models\download-ggml-model.cmd tiny.en

0 commit comments

Comments
 (0)