Add: github action libmodulesupdated

This commit is contained in:
Yoann La Cancellera
2024-05-07 11:11:49 +02:00
parent 782a3c0b1b
commit 74238cae7b
2 changed files with 32 additions and 0 deletions

16
util/check_bin_md5sum Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
for tool in bin/*; do
shasum=$(md5sum $tool)
util/update-modules $tool;
rc="$?"
if [ $? -ne 0 ]; then
echo "'util/update-modules $tool' exited with code $rc"
fi
updated_shasum=$(md5sum $tool)
if [ "$shasum" != "$updated_shasum" ]; then
echo "$tool had unsynced changes from lib, md5sum before and after running './util/update-modules $tool' is different"
exit 1
fi
done