Skip to content

Commit 45292b1

Browse files
committed
ci : update windows-blas uploads action
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.
1 parent 450de07 commit 45292b1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,14 +692,19 @@ jobs:
692692
if: matrix.sdl2 == 'ON'
693693
run: copy "$env:SDL2_DIR/../lib/${{ matrix.s2arc }}/SDL2.dll" build/bin/${{ matrix.build }}
694694

695+
- name: Pack bin artifacts
696+
shell: pwsh
697+
run: |
698+
Compress-Archive -Path "build/bin/${{ matrix.build }}" -DestinationPath "whisper-bin-${{ matrix.arch }}.zip"
699+
695700
- name: Upload binaries
696701
if: matrix.blas == 'ON' && matrix.sdl2 == 'ON' && ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') ||
697702
github.event.inputs.create_release == 'true' ||
698703
github.event.inputs.pre_release_tag != '' }}
699704
uses: actions/upload-artifact@v4
700705
with:
701706
name: whisper-blas-bin-${{ matrix.arch }}.zip
702-
path: "build/bin/${{ matrix.build }}/**"
707+
path: whisper-blas-bin-${{ matrix.arch }}.zip
703708

704709
windows-cublas:
705710
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' ||

0 commit comments

Comments
 (0)