@@ -73,22 +73,11 @@ jobs:
7373 run : |
7474 mkdir -p nitro
7575 cp build/nitro nitro/
76- zip -r nitro.zip nitro
7776 tar -czvf nitro.tar.gz nitro
7877 # run e2e testing
7978 cd nitro
8079 chmod +x ../.github/scripts/e2e-test-linux-and-mac.sh && ../.github/scripts/e2e-test-linux-and-mac.sh ./nitro ${{ env.MODEL_URL }}
8180
82- 83- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
84- env :
85- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
86- with :
87- upload_url : ${{ needs.create-draft-release.outputs.upload_url }}
88- asset_path : ./nitro.zip
89- asset_name : nitro-${{ needs.create-draft-release.outputs.version }}-linux-amd64.zip
90- asset_content_type : application/zip
91-
92819382 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
9483 env :
@@ -132,22 +121,11 @@ jobs:
132121 run : |
133122 mkdir -p nitro
134123 cp build/nitro nitro/
135- zip -r nitro.zip nitro
136124 tar -czvf nitro.tar.gz nitro
137125 # run e2e testing
138126 cd nitro
139127 chmod +x ../.github/scripts/e2e-test-linux-and-mac.sh && ../.github/scripts/e2e-test-linux-and-mac.sh ./nitro ${{ env.MODEL_URL }}
140128
141- 142- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
143- env :
144- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
145- with :
146- upload_url : ${{ needs.create-draft-release.outputs.upload_url }}
147- asset_path : ./nitro.zip
148- asset_name : nitro-${{ needs.create-draft-release.outputs.version }}-linux-amd64-cuda.zip
149- asset_content_type : application/zip
150-
151129152130 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
153131 env :
@@ -193,22 +171,11 @@ jobs:
193171 mkdir -p nitro
194172 cp llama.cpp/ggml-metal.metal nitro/
195173 cp build/nitro nitro/
196- zip -r nitro.zip nitro
197174 tar -czvf nitro.tar.gz nitro
198175 # run e2e testing
199176 cd nitro
200177 chmod +x ../.github/scripts/e2e-test-linux-and-mac.sh && ../.github/scripts/e2e-test-linux-and-mac.sh ./nitro ${{ env.MODEL_URL }}
201178
202- 203- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
204- env :
205- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
206- with :
207- upload_url : ${{ needs.create-draft-release.outputs.upload_url }}
208- asset_path : ./nitro.zip
209- asset_name : nitro-${{ needs.create-draft-release.outputs.version }}-mac-arm64.zip
210- asset_content_type : application/zip
211-
212179213180 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
214181 env :
@@ -252,21 +219,11 @@ jobs:
252219 run : |
253220 mkdir -p nitro
254221 cp build/nitro nitro/
255- zip -r nitro.zip nitro
256222 tar -czvf nitro.tar.gz nitro
257223 # run e2e testing
258224 cd nitro
259225 chmod +x ../.github/scripts/e2e-test-linux-and-mac.sh && ../.github/scripts/e2e-test-linux-and-mac.sh ./nitro ${{ env.MODEL_URL }}
260226
261- 262- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
263- env :
264- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
265- with :
266- upload_url : ${{ needs.create-draft-release.outputs.upload_url }}
267- asset_path : ./nitro.zip
268- asset_name : nitro-${{ needs.create-draft-release.outputs.version }}-mac-amd64.zip
269- asset_content_type : application/zip
270227271228 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
272229 env :
@@ -332,23 +289,11 @@ jobs:
332289 run : |
333290 robocopy build_deps\_install\bin .\build\Release zlib.dll
334291 robocopy build\bin\Release .\build\Release llama.dll
335- 7z a nitro.zip .\build\Release\*
336292 7z a -ttar temp.tar .\build\Release\*
337293 7z a -tgzip nitro.tar.gz temp.tar
338294 cd .\build\Release
339295 ..\..\.github\scripts\e2e-test-windows.bat .\nitro.exe ${{ env.MODEL_URL }}
340296
341- 342- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
343- env :
344- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
345- with :
346- upload_url : ${{ needs.create-draft-release.outputs.upload_url }}
347- asset_path : ./nitro.zip
348- asset_name : nitro-${{ needs.create-draft-release.outputs.version }}-win-amd64.zip
349- asset_content_type : application/zip
350-
351-
352297353298 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
354299 env :
@@ -404,21 +349,11 @@ jobs:
404349 set PATH=%PATH%;C:\Program Files\7-Zip\
405350 robocopy build_deps\_install\bin .\build\Release zlib.dll
406351 robocopy build\bin\Release .\build\Release llama.dll
407- 7z a nitro.zip .\build\Release\*
408352 7z a -ttar temp.tar .\build\Release\*
409353 7z a -tgzip nitro.tar.gz temp.tar
410354 cd .\build\Release
411355 ..\..\.github\scripts\e2e-test-windows.bat .\nitro.exe ${{ env.MODEL_URL }}
412-
413- 414- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
415- env :
416- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
417- with :
418- upload_url : ${{ needs.create-draft-release.outputs.upload_url }}
419- asset_path : ./nitro.zip
420- asset_name : nitro-${{ needs.create-draft-release.outputs.version }}-win-amd64-cuda.zip
421- asset_content_type : application/zip
356+
422357423358 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
424359 env :
0 commit comments