Skip to content

Commit 1da6be5

Browse files
committed
test script for macos
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
1 parent 09d6416 commit 1da6be5

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ jobs:
6666
6767
- name: Compare builds
6868
run: |
69-
diff -qr ${PATH1} ${PATH2} || (echo "Build mismatch detected" && exit 1)
69+
diff -qr ${PATH1} ${PATH2}
70+
if [ $? -ne 0 ]; then
71+
echo "Build mismatch detected"
72+
exit 1
73+
fi
7074
echo "Builds are identical"
7175
7276
check-reproducibility-c-windows:
@@ -164,11 +168,9 @@ jobs:
164168
165169
- name: Compare builds
166170
run: |
167-
hash1="$(sha1sum ./install/${{ env.PRESET }}-1/lib/libpower_grid_model_c.dylib)"
168-
hash2="$(sha1sum ./install/${{ env.PRESET }}-2/lib/libpower_grid_model_c.dylib)"
169-
if [ "$hash1" != "$hash2" ]; then
171+
diff -qr ${PATH1} ${PATH2}
172+
if [ $? -ne 0 ]; then
170173
echo "Build mismatch detected"
171174
exit 1
172-
else
173-
echo "Builds are identical"
174175
fi
176+
echo "Builds are identical"

0 commit comments

Comments
 (0)