danbev commited on
Commit
3dbef6c
·
unverified ·
1 Parent(s): a8a2519

ci : zip windows artifacts for release uploading (#3124)

Browse files

This commit adds steps to the windows jobs to zip and upload
artifacts produced.

The motivation for this is that currently the artifacts are not zipped
which means that will not be picked up by the release job and hence not
be included in github releases.

Resolves: https://github.com/ggml-org/whisper.cpp/issues/3119

Files changed (1) hide show
  1. .github/workflows/build.yml +33 -8
.github/workflows/build.yml CHANGED
@@ -604,12 +604,19 @@ jobs:
604
  name: ggml_cpu_${{ matrix.arch }}.dll
605
  path: build/bin/${{ matrix.build }}/ggml-cpu.dll
606
 
 
 
 
 
 
607
  - name: Upload binaries
608
- if: matrix.sdl2 == 'ON'
 
 
609
  uses: actions/upload-artifact@v4
610
  with:
611
- name: whisper-bin-${{ matrix.arch }}
612
- path: build/bin/${{ matrix.build }}
613
 
614
  windows-blas:
615
  if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' ||
@@ -679,12 +686,19 @@ jobs:
679
  if: matrix.sdl2 == 'ON'
680
  run: copy "$env:SDL2_DIR/../lib/${{ matrix.s2arc }}/SDL2.dll" build/bin/${{ matrix.build }}
681
 
 
 
 
 
 
682
  - name: Upload binaries
683
- if: matrix.blas == 'ON' && matrix.sdl2 == 'ON'
 
 
684
  uses: actions/upload-artifact@v4
685
  with:
686
- name: whisper-blas-bin-${{ matrix.arch }}
687
- path: build/bin/${{ matrix.build }}
688
 
689
  windows-cublas:
690
  if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' ||
@@ -874,11 +888,19 @@ jobs:
874
  if: matrix.sdl2 == 'ON'
875
  run: copy "$env:SDL2_DIR/../lib/${{ matrix.arch }}/SDL2.dll" build/bin/${{ matrix.build }}
876
 
 
 
 
 
 
877
  - name: Upload binaries
 
 
 
878
  uses: actions/upload-artifact@v4
879
  with:
880
- name: whisper-cublas-${{ matrix.cuda-toolkit }}-bin-${{ matrix.arch }}
881
- path: build/bin/${{ matrix.build }}
882
 
883
  emscripten:
884
  if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' ||
@@ -1140,6 +1162,9 @@ jobs:
1140
  needs:
1141
  - determine-tag
1142
  - ios-xcode-build
 
 
 
1143
 
1144
  steps:
1145
  - name: Clone
 
604
  name: ggml_cpu_${{ matrix.arch }}.dll
605
  path: build/bin/${{ matrix.build }}/ggml-cpu.dll
606
 
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
+
612
  - 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 != '' }}
616
  uses: actions/upload-artifact@v4
617
  with:
618
+ name: whisper-bin-${{ matrix.arch }}.zip
619
+ path: whisper-bin-${{ matrix.arch }}.zip
620
 
621
  windows-blas:
622
  if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' ||
 
686
  if: matrix.sdl2 == 'ON'
687
  run: copy "$env:SDL2_DIR/../lib/${{ matrix.s2arc }}/SDL2.dll" build/bin/${{ matrix.build }}
688
 
689
+ - name: Pack bin artifacts
690
+ shell: pwsh
691
+ run: |
692
+ Compress-Archive -Path "build/bin/${{ matrix.build }}" -DestinationPath "whisper-blas-bin-${{ matrix.arch }}.zip"
693
+
694
  - name: Upload binaries
695
+ if: matrix.blas == 'ON' && matrix.sdl2 == 'ON' && ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') ||
696
+ github.event.inputs.create_release == 'true' ||
697
+ github.event.inputs.pre_release_tag != '' }}
698
  uses: actions/upload-artifact@v4
699
  with:
700
+ name: whisper-blas-bin-${{ matrix.arch }}.zip
701
+ path: whisper-blas-bin-${{ matrix.arch }}.zip
702
 
703
  windows-cublas:
704
  if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' ||
 
888
  if: matrix.sdl2 == 'ON'
889
  run: copy "$env:SDL2_DIR/../lib/${{ matrix.arch }}/SDL2.dll" build/bin/${{ matrix.build }}
890
 
891
+ - name: Pack bin artifacts
892
+ shell: pwsh
893
+ run: |
894
+ Compress-Archive -Path "build/bin/${{ matrix.build }}" -DestinationPath "whisper-cublas-${{ matrix.cuda-toolkit }}-bin-${{ matrix.arch }}.zip"
895
+
896
  - name: Upload binaries
897
+ if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') ||
898
+ github.event.inputs.create_release == 'true' ||
899
+ github.event.inputs.pre_release_tag != '' }}
900
  uses: actions/upload-artifact@v4
901
  with:
902
+ name: whisper-cublas-${{ matrix.cuda-toolkit }}-bin-${{ matrix.arch }}.zip
903
+ path: whisper-cublas-${{ matrix.cuda-toolkit }}-bin-${{ matrix.arch }}.zip
904
 
905
  emscripten:
906
  if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' ||
 
1162
  needs:
1163
  - determine-tag
1164
  - ios-xcode-build
1165
+ - windows
1166
+ - windows-blas
1167
+ - windows-cublas
1168
 
1169
  steps:
1170
  - name: Clone