danbev commited on
Commit
3b0cb7a
·
unverified ·
1 Parent(s): 84007bb

ci : update windows-blas uploads action (#3192)

Browse files

This commit modifies windows-blas which was updated previously to use
the zip functionality provided by `actions/upload-artifact`. This turned
out to be incorrect and I should not have done that. The reason for
zipping the archives first is that otherwise the artifacts when
downloaded will be unzipped and just be simple directories. In our case
the release task depends on the artifacts having a .zip extension so
that those archives are include in the release.

Files changed (1) hide show
  1. .github/workflows/build.yml +6 -1
.github/workflows/build.yml CHANGED
@@ -692,6 +692,11 @@ jobs:
692
  if: matrix.sdl2 == 'ON'
693
  run: copy "$env:SDL2_DIR/../lib/${{ matrix.s2arc }}/SDL2.dll" build/bin/${{ matrix.build }}
694
 
 
 
 
 
 
695
  - name: Upload binaries
696
  if: matrix.blas == 'ON' && matrix.sdl2 == 'ON' && ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') ||
697
  github.event.inputs.create_release == 'true' ||
@@ -699,7 +704,7 @@ jobs:
699
  uses: actions/upload-artifact@v4
700
  with:
701
  name: whisper-blas-bin-${{ matrix.arch }}.zip
702
- path: "build/bin/${{ matrix.build }}/**"
703
 
704
  windows-cublas:
705
  if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' ||
 
692
  if: matrix.sdl2 == 'ON'
693
  run: copy "$env:SDL2_DIR/../lib/${{ matrix.s2arc }}/SDL2.dll" build/bin/${{ matrix.build }}
694
 
695
+ - name: Pack bin artifacts
696
+ shell: pwsh
697
+ run: |
698
+ Compress-Archive -Path "build/bin/${{ matrix.build }}" -DestinationPath "whisper-blas-bin-${{ matrix.arch }}.zip"
699
+
700
  - name: Upload binaries
701
  if: matrix.blas == 'ON' && matrix.sdl2 == 'ON' && ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') ||
702
  github.event.inputs.create_release == 'true' ||
 
704
  uses: actions/upload-artifact@v4
705
  with:
706
  name: whisper-blas-bin-${{ matrix.arch }}.zip
707
+ path: whisper-blas-bin-${{ matrix.arch }}.zip
708
 
709
  windows-cublas:
710
  if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' ||