]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
restore the condistion to build & update pacakge when merge (#10507)
authorNeo Zhang Jianyu <redacted>
Tue, 26 Nov 2024 13:43:47 +0000 (21:43 +0800)
committerGitHub <redacted>
Tue, 26 Nov 2024 13:43:47 +0000 (21:43 +0800)
Co-authored-by: arthw <redacted>
.github/workflows/build.yml

index 6281663ecb347245c158d0bf9afbec20925426f7..c6aecec6e94d594cf3fbd8a2a630c28f500362a3 100644 (file)
@@ -1041,7 +1041,7 @@ jobs:
 
       - name: Build the release package
         id: pack_artifacts
-        if: ${{ ( github.event_name == 'pull_request' && github.base_ref == 'master' ) }}
+        if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
         run: |
           echo "cp oneAPI running time dll files in ${{ env.ONEAPI_ROOT }} to ./build/bin"
 
@@ -1066,7 +1066,7 @@ jobs:
           7z a llama-${{ steps.tag.outputs.name }}-bin-win-sycl-x64.zip ./build/bin/*
 
       - name: Upload the release package
-        if: ${{ ( github.event_name == 'pull_request' && github.base_ref == 'master' ) }}
+        if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
         uses: actions/upload-artifact@v4
         with:
           path: llama-${{ steps.tag.outputs.name }}-bin-win-sycl-x64.zip