@@ -84,14 +84,12 @@ jobs:
8484
8585 - name : Pack artifacts
8686 id : pack_artifacts
87- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
8887 run : |
8988 cp LICENSE ./build/bin/
9089 cp examples/run/linenoise.cpp/LICENSE ./build/bin/LICENSE.linenoise.cpp
9190 zip -r llama-${{ steps.tag.outputs.name }}-bin-macos-arm64.zip ./build/bin/*
9291
9392 - name : Upload artifacts
94- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
9593 uses : actions/upload-artifact@v4
9694 with :
9795 path : llama-${{ steps.tag.outputs.name }}-bin-macos-arm64.zip
@@ -147,14 +145,12 @@ jobs:
147145
148146 - name : Pack artifacts
149147 id : pack_artifacts
150- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
151148 run : |
152149 cp LICENSE ./build/bin/
153150 cp examples/run/linenoise.cpp/LICENSE ./build/bin/LICENSE.linenoise.cpp
154151 zip -r llama-${{ steps.tag.outputs.name }}-bin-macos-x64.zip ./build/bin/*
155152
156153 - name : Upload artifacts
157- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
158154 uses : actions/upload-artifact@v4
159155 with :
160156 path : llama-${{ steps.tag.outputs.name }}-bin-macos-x64.zip
@@ -219,14 +215,12 @@ jobs:
219215
220216 - name : Pack artifacts
221217 id : pack_artifacts
222- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
223218 run : |
224219 cp LICENSE ./build/bin/
225220 cp examples/run/linenoise.cpp/LICENSE ./build/bin/LICENSE.linenoise.cpp
226221 zip -r llama-${{ steps.tag.outputs.name }}-bin-ubuntu-x64.zip ./build/bin/*
227222
228223 - name : Upload artifacts
229- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
230224 uses : actions/upload-artifact@v4
231225 with :
232226 path : llama-${{ steps.tag.outputs.name }}-bin-ubuntu-x64.zip
@@ -823,14 +817,12 @@ jobs:
823817
824818 - name : Pack artifacts
825819 id : pack_artifacts
826- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
827820 run : |
828821 Copy-Item LICENSE .\build\bin\Release\llama.cpp.txt
829822 Copy-Item .\examples\run\linenoise.cpp\LICENSE .\build\bin\Release\linenoise.cpp.txt
830823 7z a llama-${{ steps.tag.outputs.name }}-bin-win-${{ matrix.build }}.zip .\build\bin\Release\*
831824
832825 - name : Upload artifacts
833- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
834826 uses : actions/upload-artifact@v4
835827 with :
836828 path : llama-${{ steps.tag.outputs.name }}-bin-win-${{ matrix.build }}.zip
@@ -973,19 +965,16 @@ jobs:
973965
974966 - name : Pack artifacts
975967 id : pack_artifacts
976- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
977968 run : |
978969 7z a llama-${{ steps.tag.outputs.name }}-bin-win-${{ matrix.build }}-cu${{ matrix.cuda }}-x64.zip .\build\bin\Release\*
979970
980971 - name : Upload artifacts
981- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
982972 uses : actions/upload-artifact@v4
983973 with :
984974 path : llama-${{ steps.tag.outputs.name }}-bin-win-${{ matrix.build }}-cu${{ matrix.cuda }}-x64.zip
985975 name : llama-bin-win-cu${{ matrix.cuda }}-x64.zip
986976
987977 - name : Copy and pack Cuda runtime
988- if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
989978 run : |
990979 echo "Cuda install location: ${{ env.CUDA_PATH }}"
991980 $dst='.\build\bin\cudart\'
@@ -994,7 +983,6 @@ jobs:
994983 7z a cudart-llama-bin-win-cu${{ matrix.cuda }}-x64.zip $dst\*
995984
996985 - name : Upload Cuda runtime
997- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
998986 uses : actions/upload-artifact@v4
999987 with :
1000988 path : cudart-llama-bin-win-cu${{ matrix.cuda }}-x64.zip
@@ -1041,7 +1029,6 @@ jobs:
10411029
10421030 - name : Build the release package
10431031 id : pack_artifacts
1044- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
10451032 run : |
10461033 echo "cp oneAPI running time dll files in ${{ env.ONEAPI_ROOT }} to ./build/bin"
10471034
@@ -1066,7 +1053,6 @@ jobs:
10661053 7z a llama-${{ steps.tag.outputs.name }}-bin-win-sycl-x64.zip ./build/bin/*
10671054
10681055 - name : Upload the release package
1069- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
10701056 uses : actions/upload-artifact@v4
10711057 with :
10721058 path : llama-${{ steps.tag.outputs.name }}-bin-win-sycl-x64.zip
0 commit comments