@@ -604,12 +604,20 @@ jobs:
604604 name : ggml_cpu_${{ matrix.arch }}.dll
605605 path : build/bin/${{ matrix.build }}/ggml-cpu.dll
606606
607+ - name : Pack bin artifacts
608+ shell : pwsh
609+ run : |
610+ Compress-Archive -Path "build/bin/${{ matrix.build }}" -DestinationPath "whisper-bin-${{ matrix.arch }}.zip"
611+
607612 - name : Upload binaries
613+ if : matrix.sdl2 == 'ON' && ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') ||
614+ github.event.inputs.create_release == 'true' ||
615+ github.event.inputs.pre_release_tag != '' }}
608616 if : matrix.sdl2 == 'ON'
609617 uses : actions/upload-artifact@v4
610618 with :
611- name : whisper-bin-${{ matrix.arch }}
612- path : build/ bin/ ${{ matrix.build }}
619+ name : whisper-bin-${{ matrix.arch }}.zip
620+ path : whisper- bin- ${{ matrix.arch }}.zip
613621
614622 windows-blas :
615623 if : ${{ github.event_name == 'push' || github.event_name == 'pull_request' ||
@@ -679,12 +687,19 @@ jobs:
679687 if : matrix.sdl2 == 'ON'
680688 run : copy "$env:SDL2_DIR/../lib/${{ matrix.s2arc }}/SDL2.dll" build/bin/${{ matrix.build }}
681689
690+ - name : Pack bin artifacts
691+ shell : pwsh
692+ run : |
693+ Compress-Archive -Path "build/bin/${{ matrix.build }}" -DestinationPath "whisper-blas-bin-${{ matrix.arch }}.zip"
694+
682695 - name : Upload binaries
683- if : matrix.blas == 'ON' && matrix.sdl2 == 'ON'
696+ if : matrix.blas == 'ON' && matrix.sdl2 == 'ON' && ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') ||
697+ github.event.inputs.create_release == 'true' ||
698+ github.event.inputs.pre_release_tag != '' }}
684699 uses : actions/upload-artifact@v4
685700 with :
686- name : whisper-blas-bin-${{ matrix.arch }}
687- path : build/ bin/ ${{ matrix.build }}
701+ name : whisper-blas-bin-${{ matrix.arch }}.zip
702+ path : whisper-blas- bin- ${{ matrix.arch }}.zip
688703
689704 windows-cublas :
690705 if : ${{ github.event_name == 'push' || github.event_name == 'pull_request' ||
@@ -874,11 +889,19 @@ jobs:
874889 if : matrix.sdl2 == 'ON'
875890 run : copy "$env:SDL2_DIR/../lib/${{ matrix.arch }}/SDL2.dll" build/bin/${{ matrix.build }}
876891
892+ - name : Pack bin artifacts
893+ shell : pwsh
894+ run : |
895+ Compress-Archive -Path "build/bin/${{ matrix.build }}" -DestinationPath "whisper-cublas-${{ matrix.cuda-toolkit }}-bin-${{ matrix.arch }}.zip"
896+
877897 - name : Upload binaries
898+ if : ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') ||
899+ github.event.inputs.create_release == 'true' ||
900+ github.event.inputs.pre_release_tag != '' }}
878901 uses : actions/upload-artifact@v4
879902 with :
880- name : whisper-cublas-${{ matrix.cuda-toolkit }}-bin-${{ matrix.arch }}
881- path : build/ bin/ ${{ matrix.build }}
903+ name : whisper-cublas-${{ matrix.cuda-toolkit }}-bin-${{ matrix.arch }}.zip
904+ path : whisper-cublas-${{ matrix.cuda-toolkit }}- bin- ${{ matrix.arch }}.zip
882905
883906 emscripten :
884907 if : ${{ github.event_name == 'push' || github.event_name == 'pull_request' ||
0 commit comments