@@ -85,14 +85,12 @@ jobs:
8585
8686 - name : Pack artifacts
8787 id : pack_artifacts
88- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
8988 run : |
9089 cp LICENSE ./build/bin/
9190 cp examples/run/linenoise.cpp/LICENSE ./build/bin/LICENSE.linenoise.cpp
9291 zip -r llama-${{ steps.tag.outputs.name }}-bin-macos-arm64.zip ./build/bin/*
9392
9493 - name : Upload artifacts
95- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
9694 uses : actions/upload-artifact@v4
9795 with :
9896 path : llama-${{ steps.tag.outputs.name }}-bin-macos-arm64.zip
@@ -149,14 +147,12 @@ jobs:
149147
150148 - name : Pack artifacts
151149 id : pack_artifacts
152- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
153150 run : |
154151 cp LICENSE ./build/bin/
155152 cp examples/run/linenoise.cpp/LICENSE ./build/bin/LICENSE.linenoise.cpp
156153 zip -r llama-${{ steps.tag.outputs.name }}-bin-macos-x64.zip ./build/bin/*
157154
158155 - name : Upload artifacts
159- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
160156 uses : actions/upload-artifact@v4
161157 with :
162158 path : llama-${{ steps.tag.outputs.name }}-bin-macos-x64.zip
@@ -221,14 +217,12 @@ jobs:
221217
222218 - name : Pack artifacts
223219 id : pack_artifacts
224- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
225220 run : |
226221 cp LICENSE ./build/bin/
227222 cp examples/run/linenoise.cpp/LICENSE ./build/bin/LICENSE.linenoise.cpp
228223 zip -r llama-${{ steps.tag.outputs.name }}-bin-ubuntu-x64.zip ./build/bin/*
229224
230225 - name : Upload artifacts
231- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
232226 uses : actions/upload-artifact@v4
233227 with :
234228 path : llama-${{ steps.tag.outputs.name }}-bin-ubuntu-x64.zip
@@ -790,14 +784,12 @@ jobs:
790784
791785 - name : Pack artifacts
792786 id : pack_artifacts
793- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
794787 run : |
795788 Copy-Item LICENSE .\build\bin\Release\llama.cpp.txt
796789 Copy-Item .\examples\run\linenoise.cpp\LICENSE .\build\bin\Release\linenoise.cpp.txt
797790 7z a llama-${{ steps.tag.outputs.name }}-bin-win-${{ matrix.build }}.zip .\build\bin\Release\*
798791
799792 - name : Upload artifacts
800- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
801793 uses : actions/upload-artifact@v4
802794 with :
803795 path : llama-${{ steps.tag.outputs.name }}-bin-win-${{ matrix.build }}.zip
@@ -940,19 +932,16 @@ jobs:
940932
941933 - name : Pack artifacts
942934 id : pack_artifacts
943- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
944935 run : |
945936 7z a llama-${{ steps.tag.outputs.name }}-bin-win-${{ matrix.build }}-cu${{ matrix.cuda }}-x64.zip .\build\bin\Release\*
946937
947938 - name : Upload artifacts
948- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
949939 uses : actions/upload-artifact@v4
950940 with :
951941 path : llama-${{ steps.tag.outputs.name }}-bin-win-${{ matrix.build }}-cu${{ matrix.cuda }}-x64.zip
952942 name : llama-bin-win-cu${{ matrix.cuda }}-x64.zip
953943
954944 - name : Copy and pack Cuda runtime
955- if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
956945 run : |
957946 echo "Cuda install location: ${{ env.CUDA_PATH }}"
958947 $dst='.\build\bin\cudart\'
@@ -961,7 +950,6 @@ jobs:
961950 7z a cudart-llama-bin-win-cu${{ matrix.cuda }}-x64.zip $dst\*
962951
963952 - name : Upload Cuda runtime
964- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
965953 uses : actions/upload-artifact@v4
966954 with :
967955 path : cudart-llama-bin-win-cu${{ matrix.cuda }}-x64.zip
@@ -1008,7 +996,6 @@ jobs:
1008996
1009997 - name : Build the release package
1010998 id : pack_artifacts
1011- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
1012999 run : |
10131000 echo "cp oneAPI running time dll files in ${{ env.ONEAPI_ROOT }} to ./build/bin"
10141001
@@ -1033,7 +1020,6 @@ jobs:
10331020 7z a llama-${{ steps.tag.outputs.name }}-bin-win-sycl-x64.zip ./build/bin/*
10341021
10351022 - name : Upload the release package
1036- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
10371023 uses : actions/upload-artifact@v4
10381024 with :
10391025 path : llama-${{ steps.tag.outputs.name }}-bin-win-sycl-x64.zip
0 commit comments