]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
ci : update windows-blas uploads action (#3192)
authorDaniel Bevenius <redacted>
Tue, 27 May 2025 16:01:31 +0000 (18:01 +0200)
committerGitHub <redacted>
Tue, 27 May 2025 16:01:31 +0000 (18:01 +0200)
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.

.github/workflows/build.yml

index 2cf11279224cbf68718696470cf96e088b02b3f4..421ed4b46733a24bb44f191376324d8dacf8ae5f 100644 (file)
@@ -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' ||