From: Neo Zhang Jianyu Date: Tue, 26 Nov 2024 13:43:47 +0000 (+0800) Subject: restore the condistion to build & update pacakge when merge (#10507) X-Git-Tag: upstream/0.0.4488~304 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=0bbd2262a3263f37385297b30de37941836e57f7;p=pkg%2Fggml%2Fsources%2Fllama.cpp restore the condistion to build & update pacakge when merge (#10507) Co-authored-by: arthw --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6281663e..c6aecec6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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