@@ -84,14 +84,12 @@ jobs:
84
84
85
85
- name : Pack artifacts
86
86
id : pack_artifacts
87
- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
88
87
run : |
89
88
cp LICENSE ./build/bin/
90
89
cp examples/run/linenoise.cpp/LICENSE ./build/bin/LICENSE.linenoise.cpp
91
90
zip -r llama-${{ steps.tag.outputs.name }}-bin-macos-arm64.zip ./build/bin/*
92
91
93
92
- name : Upload artifacts
94
- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
95
93
uses : actions/upload-artifact@v4
96
94
with :
97
95
path : llama-${{ steps.tag.outputs.name }}-bin-macos-arm64.zip
@@ -147,14 +145,12 @@ jobs:
147
145
148
146
- name : Pack artifacts
149
147
id : pack_artifacts
150
- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
151
148
run : |
152
149
cp LICENSE ./build/bin/
153
150
cp examples/run/linenoise.cpp/LICENSE ./build/bin/LICENSE.linenoise.cpp
154
151
zip -r llama-${{ steps.tag.outputs.name }}-bin-macos-x64.zip ./build/bin/*
155
152
156
153
- name : Upload artifacts
157
- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
158
154
uses : actions/upload-artifact@v4
159
155
with :
160
156
path : llama-${{ steps.tag.outputs.name }}-bin-macos-x64.zip
@@ -219,14 +215,12 @@ jobs:
219
215
220
216
- name : Pack artifacts
221
217
id : pack_artifacts
222
- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
223
218
run : |
224
219
cp LICENSE ./build/bin/
225
220
cp examples/run/linenoise.cpp/LICENSE ./build/bin/LICENSE.linenoise.cpp
226
221
zip -r llama-${{ steps.tag.outputs.name }}-bin-ubuntu-x64.zip ./build/bin/*
227
222
228
223
- name : Upload artifacts
229
- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
230
224
uses : actions/upload-artifact@v4
231
225
with :
232
226
path : llama-${{ steps.tag.outputs.name }}-bin-ubuntu-x64.zip
@@ -823,14 +817,12 @@ jobs:
823
817
824
818
- name : Pack artifacts
825
819
id : pack_artifacts
826
- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
827
820
run : |
828
821
Copy-Item LICENSE .\build\bin\Release\llama.cpp.txt
829
822
Copy-Item .\examples\run\linenoise.cpp\LICENSE .\build\bin\Release\linenoise.cpp.txt
830
823
7z a llama-${{ steps.tag.outputs.name }}-bin-win-${{ matrix.build }}.zip .\build\bin\Release\*
831
824
832
825
- name : Upload artifacts
833
- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
834
826
uses : actions/upload-artifact@v4
835
827
with :
836
828
path : llama-${{ steps.tag.outputs.name }}-bin-win-${{ matrix.build }}.zip
@@ -973,19 +965,16 @@ jobs:
973
965
974
966
- name : Pack artifacts
975
967
id : pack_artifacts
976
- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
977
968
run : |
978
969
7z a llama-${{ steps.tag.outputs.name }}-bin-win-${{ matrix.build }}-cu${{ matrix.cuda }}-x64.zip .\build\bin\Release\*
979
970
980
971
- name : Upload artifacts
981
- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
982
972
uses : actions/upload-artifact@v4
983
973
with :
984
974
path : llama-${{ steps.tag.outputs.name }}-bin-win-${{ matrix.build }}-cu${{ matrix.cuda }}-x64.zip
985
975
name : llama-bin-win-cu${{ matrix.cuda }}-x64.zip
986
976
987
977
- name : Copy and pack Cuda runtime
988
- if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
989
978
run : |
990
979
echo "Cuda install location: ${{ env.CUDA_PATH }}"
991
980
$dst='.\build\bin\cudart\'
@@ -994,7 +983,6 @@ jobs:
994
983
7z a cudart-llama-bin-win-cu${{ matrix.cuda }}-x64.zip $dst\*
995
984
996
985
- name : Upload Cuda runtime
997
- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
998
986
uses : actions/upload-artifact@v4
999
987
with :
1000
988
path : cudart-llama-bin-win-cu${{ matrix.cuda }}-x64.zip
@@ -1041,7 +1029,6 @@ jobs:
1041
1029
1042
1030
- name : Build the release package
1043
1031
id : pack_artifacts
1044
- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
1045
1032
run : |
1046
1033
echo "cp oneAPI running time dll files in ${{ env.ONEAPI_ROOT }} to ./build/bin"
1047
1034
@@ -1066,7 +1053,6 @@ jobs:
1066
1053
7z a llama-${{ steps.tag.outputs.name }}-bin-win-sycl-x64.zip ./build/bin/*
1067
1054
1068
1055
- name : Upload the release package
1069
- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
1070
1056
uses : actions/upload-artifact@v4
1071
1057
with :
1072
1058
path : llama-${{ steps.tag.outputs.name }}-bin-win-sycl-x64.zip
0 commit comments