From: Daniel Bevenius Date: Tue, 27 May 2025 16:01:31 +0000 (+0200) Subject: ci : update windows-blas uploads action (#3192) X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=0ed00d9d30e8c984936ff9ed9a4fcd475d6d82e5;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp ci : update windows-blas uploads action (#3192) 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. --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2cf11279..421ed4b4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -692,6 +692,11 @@ jobs: if: matrix.sdl2 == 'ON' run: copy "$env:SDL2_DIR/../lib/${{ matrix.s2arc }}/SDL2.dll" build/bin/${{ matrix.build }} + - name: Pack bin artifacts + shell: pwsh + run: | + Compress-Archive -Path "build/bin/${{ matrix.build }}" -DestinationPath "whisper-blas-bin-${{ matrix.arch }}.zip" + - name: Upload binaries if: matrix.blas == 'ON' && matrix.sdl2 == 'ON' && ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event.inputs.create_release == 'true' || @@ -699,7 +704,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: whisper-blas-bin-${{ matrix.arch }}.zip - path: "build/bin/${{ matrix.build }}/**" + path: whisper-blas-bin-${{ matrix.arch }}.zip windows-cublas: if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' ||