Skip to content

Commit ed4739a

Browse files
authored
Update ci.yml
1 parent b2808b1 commit ed4739a

1 file changed

Lines changed: 5 additions & 29 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -254,17 +254,11 @@ jobs:
254254
id: set_eval_binary
255255
run: |
256256
echo "EVAL_BINARY=build/bin/ACC" >> $GITHUB_OUTPUT
257+
257258
- name: Install system dependencies
258259
run: |
259260
sudo apt-get update
260-
sudo apt-get install -y \
261-
libgtk-3-0 \
262-
libtbb12 \
263-
libjpeg-dev \
264-
libpng-dev \
265-
libtiff-dev \
266-
libopenjp2-7 \
267-
libdnnl3
261+
sudo apt-get install -y libgtk-3-0 libtbb12 libjpeg-dev libpng-dev libtiff-dev libopenjp2-7 libdnnl3
268262
sudo ldconfig
269263
270264
- name: Generate model JSON
@@ -286,7 +280,6 @@ jobs:
286280
- name: Download MNIST test dataset
287281
if: steps.cache-mnist.outputs.cache-hit != 'true'
288282
run: |
289-
set -e
290283
mkdir -p docs/mnist/mnist/test
291284
wget -q https://github.com/DeepTrackAI/MNIST_dataset/archive/main.zip -O main.zip
292285
unzip -q main.zip
@@ -295,33 +288,16 @@ jobs:
295288
296289
- name: Prepare environment
297290
run: |
298-
echo "Binary path: ${{ steps.set_eval_binary.outputs.EVAL_BINARY }}"
299-
ls -la "${{ steps.set_eval_binary.outputs.EVAL_BINARY }}"
300291
chmod +x "${{ steps.set_eval_binary.outputs.EVAL_BINARY }}"
301292
export LD_LIBRARY_PATH=$PWD/build/bin/all_libs:/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
302-
echo "LD_LIBRARY_PATH: $LD_LIBRARY_PATH"
303-
ls -la build/bin/all_libs/ | head -10
304293
305294
- name: Run evaluation
306295
run: |
307296
export LD_LIBRARY_PATH=$PWD/build/bin/all_libs:/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
308-
echo "LD_LIBRARY_PATH: $LD_LIBRARY_PATH"
309-
310-
echo "### Checking binary dependencies ###"
311-
ldd "${{ steps.set_eval_binary.outputs.EVAL_BINARY }}"
312-
313-
echo "### Running MNIST evaluation ###"
314297
"${{ steps.set_eval_binary.outputs.EVAL_BINARY }}" --model alexnet_mnist > accuracy.txt 2>&1
315-
EVAL_EXIT_CODE=$?
316-
317-
echo "Evaluation exit code: $EVAL_EXIT_CODE"
318-
echo "### Evaluation output ###"
319-
cat accuracy.txt
320-
321-
if [ $EVAL_EXIT_CODE -ne 0 ]; then
322-
echo "ERROR: Evaluation failed"
323-
exit 1
324-
fi
298+
if [ $? -ne 0 ]; then
299+
exit 1
300+
fi
325301
326302
- name: Extract accuracy value
327303
run: |

0 commit comments

Comments
 (0)