Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 59d1f3d

Browse files
committed
Integrate run e2e testing nitro to CI
1 parent 6296751 commit 59d1f3d

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed
File renamed without changes.
File renamed without changes.

.github/workflows/build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212

1313
env:
1414
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
1516

1617
jobs:
1718
create-draft-release:
@@ -72,6 +73,12 @@ jobs:
7273
run: |
7374
mkdir -p nitro
7475
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+
7582
zip -r nitro.zip nitro
7683
7784
- uses: actions/[email protected]
@@ -117,6 +124,12 @@ jobs:
117124
run: |
118125
mkdir -p nitro
119126
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+
120133
zip -r nitro.zip nitro
121134
122135
- uses: actions/[email protected]
@@ -164,6 +177,12 @@ jobs:
164177
mkdir -p nitro
165178
cp llama.cpp/ggml-metal.metal nitro/
166179
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+
167186
zip -r nitro.zip nitro
168187
169188
- uses: actions/[email protected]
@@ -209,6 +228,12 @@ jobs:
209228
run: |
210229
mkdir -p nitro
211230
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+
212237
zip -r nitro.zip nitro
213238
214239
- uses: actions/[email protected]
@@ -278,6 +303,11 @@ jobs:
278303
robocopy build\bin\Release .\build\Release llama.dll
279304
robocopy ext_libs .\build\Release libcrypto-3-x64.dll
280305
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+
281311
7z a nitro.zip .\build\Release\*
282312
283313
- uses: actions/[email protected]
@@ -338,6 +368,11 @@ jobs:
338368
robocopy build\bin\Release .\build\Release llama.dll
339369
robocopy ext_libs .\build\Release libcrypto-3-x64.dll
340370
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+
341376
7z a nitro.zip .\build\Release\*
342377
343378
- uses: actions/[email protected]

0 commit comments

Comments
 (0)