Skip to content

Commit dcd3b43

Browse files
author
Noam Preil
committed
Fail if there's a memory leak building the kernel
1 parent 5e10d06 commit dcd3b43

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@ image: archlinux
22
packages:
33
- make
44
- cmake
5+
- mkrom
6+
- patchrom
7+
- genkfs
8+
- mktiupgrade
9+
- valgrind
510
sources:
611
- https://github.com/knightos/scas
12+
- https://github.com/knightos/kernel
713
environment:
814
project: scas
915
tasks:
@@ -13,3 +19,7 @@ tasks:
1319
cd build
1420
cmake -DCMAKE_BUILD_TYPE=Release ..
1521
make
22+
cd ../../kernel
23+
mkdir bin/TI84pSE -p
24+
valgrind -s --track-origins=yes --leak-check=full --error-exitcode=1 ../scas/build/scas --define TI84pSE --include "include/;bin/TI84pSE/;src/00/" --symbols bin/TI84pSE/00.sym --listing bin/TI84pSE/00.list src/00/base.asm -o bin/TI84pSE/00.bin -vv
25+
if [[ "$(grep ERROR\ SUMMARY log | cut -d\ -f4)" != "0" ]] ; then echo Memory error ; exit 1 ; fi

0 commit comments

Comments
 (0)