Skip to content

Commit f07d208

Browse files
committed
add macos dynamic dep check
1 parent 64cd769 commit f07d208

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/ci_new_compiler.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,10 @@ jobs:
5050
- name: check if statically linked (macOS)
5151
if: startsWith(matrix.os, 'macos')
5252
run: |
53-
otool -L ./zig-out/bin/roc
53+
otool_out="$(otool -L ./zig-out/bin/roc)"
54+
num_lines=$(echo "$otool_out" | wc -l)
55+
if [ "$num_lines" -ne 2 ]; then
56+
echo "$otool_out"
57+
echo "Looks like you added a new dynamic dependency to the Roc executable, we want Roc to be super easy to install, so libSystem should be the only dynamic dependency."
58+
exit 1
59+
fi

0 commit comments

Comments
 (0)