Skip to content

Commit 09d6416

Browse files
committed
fix script for linux
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
1 parent 12a7fc4 commit 09d6416

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

.github/workflows/check-build-reproducibility.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,8 @@ jobs:
6666
6767
- name: Compare builds
6868
run: |
69-
hash1="$(sha1sum ./install/${{ env.PRESET }}-1/lib/libpower_grid_model_c.so)"
70-
hash2="$(sha1sum ./install/${{ env.PRESET }}-2/lib/libpower_grid_model_c.so)"
71-
if [ "$hash1" != "$hash2" ]; then
72-
echo "Build mismatch detected"
73-
exit 1
74-
else
75-
echo "Builds are identical"
76-
fi
69+
diff -qr ${PATH1} ${PATH2} || (echo "Build mismatch detected" && exit 1)
70+
echo "Builds are identical"
7771
7872
check-reproducibility-c-windows:
7973
runs-on: windows-latest

0 commit comments

Comments
 (0)