mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-10 05:09:22 +00:00
Extend debugging when comparing SHA-256 hashes
This commit is contained in:
8
.github/workflows/stack_size.yml
vendored
8
.github/workflows/stack_size.yml
vendored
@@ -54,8 +54,14 @@ jobs:
|
|||||||
sha256sum $bin
|
sha256sum $bin
|
||||||
done
|
done
|
||||||
|
|
||||||
|
sha256() {
|
||||||
|
sha256sum "$1" | cut -d' ' -f1
|
||||||
|
}
|
||||||
|
CHELF=$(sha256 monerod-chelf)
|
||||||
find . -iname "monerod-*" | while read -r bin; do
|
find . -iname "monerod-*" | while read -r bin; do
|
||||||
if [ ! $(sha256sum monerod-chelf | cut -d' ' -f1) = $(sha256sum $bin | cut -d' ' -f1) ]; then
|
BIN=$(sha256 "$bin")
|
||||||
|
if [ ! "$CHELF" = "$BIN" ]; then
|
||||||
|
echo "Different artifact between monerod-chelf ($CHELF) and $bin ($BIN)"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user