|
12 | 12 |
|
13 | 13 | env: |
14 | 14 | BRANCH_NAME: ${{ github.head_ref || github.ref_name }} |
| 15 | + MODEL_URL: https://huggingface.co/TheBloke/TinyLlama-1.1B-Chat-v0.3-GGUF/resolve/main/tinyllama-1.1b-chat-v0.3.Q2_K.gguf |
15 | 16 |
|
16 | 17 | jobs: |
17 | 18 | create-draft-release: |
|
72 | 73 | run: | |
73 | 74 | mkdir -p nitro |
74 | 75 | cp build/nitro nitro/ |
| 76 | +
|
| 77 | + # run e2e testing |
| 78 | + cd nitro |
| 79 | + ../.github/scripts/e2e-test-linux-and-mac.sh ./nitro ${{ env.MODEL_URL }} |
| 80 | + cd .. |
| 81 | +
|
75 | 82 | zip -r nitro.zip nitro |
76 | 83 |
|
77 | 84 | |
@@ -117,6 +124,12 @@ jobs: |
117 | 124 | run: | |
118 | 125 | mkdir -p nitro |
119 | 126 | cp build/nitro nitro/ |
| 127 | +
|
| 128 | + # run e2e testing |
| 129 | + cd nitro |
| 130 | + ../.github/scripts/e2e-test-linux-and-mac.sh ./nitro ${{ env.MODEL_URL }} |
| 131 | + cd .. |
| 132 | +
|
120 | 133 | zip -r nitro.zip nitro |
121 | 134 |
|
122 | 135 | |
@@ -164,6 +177,12 @@ jobs: |
164 | 177 | mkdir -p nitro |
165 | 178 | cp llama.cpp/ggml-metal.metal nitro/ |
166 | 179 | cp build/nitro nitro/ |
| 180 | +
|
| 181 | + # run e2e testing |
| 182 | + cd nitro |
| 183 | + ../.github/scripts/e2e-test-linux-and-mac.sh ./nitro ${{ env.MODEL_URL }} |
| 184 | + cd .. |
| 185 | +
|
167 | 186 | zip -r nitro.zip nitro |
168 | 187 |
|
169 | 188 | |
@@ -209,6 +228,12 @@ jobs: |
209 | 228 | run: | |
210 | 229 | mkdir -p nitro |
211 | 230 | cp build/nitro nitro/ |
| 231 | +
|
| 232 | + # run e2e testing |
| 233 | + cd nitro |
| 234 | + ../.github/scripts/e2e-test-linux-and-mac.sh ./nitro ${{ env.MODEL_URL }} |
| 235 | + cd .. |
| 236 | +
|
212 | 237 | zip -r nitro.zip nitro |
213 | 238 |
|
214 | 239 | |
@@ -278,6 +303,11 @@ jobs: |
278 | 303 | robocopy build\bin\Release .\build\Release llama.dll |
279 | 304 | robocopy ext_libs .\build\Release libcrypto-3-x64.dll |
280 | 305 | robocopy ext_libs .\build\Release libssl-3-x64.dll |
| 306 | +
|
| 307 | + cd .\build\Release |
| 308 | + ..\..\.github\scripts\e2e-test-windows.bat .\nitro.exe ${{ env.MODEL_URL }} |
| 309 | + cd ..\.. |
| 310 | +
|
281 | 311 | 7z a nitro.zip .\build\Release\* |
282 | 312 |
|
283 | 313 | |
@@ -338,6 +368,11 @@ jobs: |
338 | 368 | robocopy build\bin\Release .\build\Release llama.dll |
339 | 369 | robocopy ext_libs .\build\Release libcrypto-3-x64.dll |
340 | 370 | robocopy ext_libs .\build\Release libssl-3-x64.dll |
| 371 | +
|
| 372 | + cd .\build\Release |
| 373 | + ..\..\.github\scripts\e2e-test-windows.bat .\nitro.exe ${{ env.MODEL_URL }} |
| 374 | + cd ..\.. |
| 375 | +
|
341 | 376 | 7z a nitro.zip .\build\Release\* |
342 | 377 |
|
343 | 378 | |
|
0 commit comments