@@ -164,13 +164,15 @@ jobs:
164164 # run e2e testing
165165 cd nitro
166166 chmod +x ../.github/scripts/e2e-test-llama-linux-and-mac.sh && ../.github/scripts/e2e-test-llama-linux-and-mac.sh ./nitro ${{ env.LLM_MODEL_URL }}
167+ rm -rf uploads/
167168
168169 - name : Run e2e testing - Whisper.CPP
169170 shell : bash
170171 run : |
171172 # run e2e testing
172173 cd nitro
173174 chmod +x ../.github/scripts/e2e-test-whisper-linux-and-mac.sh && ../.github/scripts/e2e-test-whisper-linux-and-mac.sh ./nitro ${{ env.WHISPER_MODEL_URL }}
175+ rm -rf uploads/
174176
175177 - uses : actions/upload-release-asset@v1.0.1
176178 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
@@ -228,13 +230,15 @@ jobs:
228230 # run e2e testing
229231 cd nitro
230232 chmod +x ../.github/scripts/e2e-test-llama-linux-and-mac.sh && ../.github/scripts/e2e-test-llama-linux-and-mac.sh ./nitro ${{ env.LLM_MODEL_URL }}
233+ rm -rf uploads/
231234
232235 - name : Run e2e testing - Whisper.CPP
233236 shell : bash
234237 run : |
235238 # run e2e testing
236239 cd nitro
237240 chmod +x ../.github/scripts/e2e-test-whisper-linux-and-mac.sh && ../.github/scripts/e2e-test-whisper-linux-and-mac.sh ./nitro ${{ env.WHISPER_MODEL_URL }}
241+ rm -rf uploads/
238242
239243 - uses : actions/upload-release-asset@v1.0.1
240244 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
@@ -294,19 +298,25 @@ jobs:
294298 shell : bash
295299 run : |
296300 # run e2e testing
297- cd nitro
301+ cd nitro/
298302 chmod +x ../.github/scripts/e2e-test-llama-linux-and-mac.sh && ../.github/scripts/e2e-test-llama-linux-and-mac.sh ./nitro ${{ env.LLM_MODEL_URL }}
303+ rm -rf uploads/
299304
300305 - name : Run e2e testing - Whisper.CPP
301306 shell : bash
302307 run : |
303308 # To test with CoreML
304- wget https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-tiny.en-encoder.mlmodelc.zip
305- unzip ggml-tiny.en-encoder.mlmodelc.zip
306- mv ggml-tiny.en-encoder.mlmodelc /tmp/testwhisper-encoder.mlmodelc
309+ if [[ ! -f "/tmp/testwhisper-encoder.mlmodelc" ]]; then
310+ wget https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-tiny.en-encoder.mlmodelc.zip
311+ unzip ggml-tiny.en-encoder.mlmodelc.zip
312+ rm ggml-tiny.en-encoder.mlmodelc.zip
313+ rm -rf /tmp/testwhisper-encoder.mlmodelc
314+ mv ggml-tiny.en-encoder.mlmodelc /tmp/testwhisper-encoder.mlmodelc
315+ fi
307316 # run e2e testing
308317 cd nitro
309318 chmod +x ../.github/scripts/e2e-test-whisper-linux-and-mac.sh && ../.github/scripts/e2e-test-whisper-linux-and-mac.sh ./nitro ${{ env.WHISPER_MODEL_URL }}
319+ rm -rf uploads/
310320
311321 - uses : actions/upload-release-asset@v1.0.1
312322 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
@@ -367,13 +377,15 @@ jobs:
367377 # run e2e testing
368378 cd nitro
369379 chmod +x ../.github/scripts/e2e-test-llama-linux-and-mac.sh && ../.github/scripts/e2e-test-llama-linux-and-mac.sh ./nitro ${{ env.LLM_MODEL_URL }}
380+ rm -rf uploads/
370381
371382 - name : Run e2e testing - Whisper.CPP
372383 shell : bash
373384 run : |
374385 # run e2e testing
375386 cd nitro
376387 chmod +x ../.github/scripts/e2e-test-whisper-linux-and-mac.sh && ../.github/scripts/e2e-test-whisper-linux-and-mac.sh ./nitro ${{ env.WHISPER_MODEL_URL }}
388+ rm -rf uploads/
377389
378390 - uses : actions/upload-release-asset@v1.0.1
379391 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
@@ -444,24 +456,22 @@ jobs:
444456 7z a -ttar temp.tar .\build\Release\*
445457 7z a -tgzip nitro.tar.gz temp.tar
446458
447- - name : Upload Artifact
448- uses : actions/upload-artifact@v2
449- if : github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
450- with :
451- name : nitro-win-amd64
452- path : ./build/Release
453-
454459 # - name: Run e2e testing - Llama.cpp
455460 # shell: cmd
456461 # run: |
457- # cd .\build\Release
458- # ..\..\.github\scripts\e2e-test-llama-windows.bat .\nitro.exe ${{ env.LLM_MODEL_URL }}
462+ # .\.github\scripts\e2e-test-llama-windows.bat .\build\Release\nitro.exe ${{ env.LLM_MODEL_URL }}
459463
460464 # - name: Run e2e testing - Whisper.cpp
461465 # shell: cmd
462466 # run: |
463- # cd .\build\Release
464- # ..\..\.github\scripts\e2e-test-whisper-windows.bat .\nitro.exe ${{ env.WHISPER_MODEL_URL }}
467+ # .\.github\scripts\e2e-test-whisper-windows.bat .\build\Release\nitro.exe ${{ env.WHISPER_MODEL_URL }}
468+
469+ - name : Upload Artifact
470+ uses : actions/upload-artifact@v2
471+ if : github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
472+ with :
473+ name : nitro-win-amd64
474+ path : ./build/Release
465475
466476 - uses : actions/upload-release-asset@v1.0.1
467477 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
@@ -555,18 +565,6 @@ jobs:
555565 name : nitro-win-amd64-cuda-${{ matrix.cuda }}
556566 path : ./build/Release
557567
558- # - name: Run e2e testing - Llama.cpp
559- # shell: cmd
560- # run: |
561- # cd .\build\Release
562- # ..\..\.github\scripts\e2e-test-llama-windows.bat .\nitro.exe ${{ env.LLM_MODEL_URL }}
563-
564- # - name: Run e2e testing - Whisper.cpp
565- # shell: cmd
566- # run: |
567- # cd .\build\Release
568- # ..\..\.github\scripts\e2e-test-whisper-windows.bat .\nitro.exe ${{ env.WHISPER_MODEL_URL }}
569-
570568 - uses : actions/upload-release-asset@v1.0.1
571569 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
572570 env :
0 commit comments