Skip to content

Commit 23de966

Browse files
committed
Fix workflow
1 parent 651905e commit 23de966

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,18 @@ jobs:
100100
if: matrix.os == 'ubuntu-latest'
101101
run: |
102102
EXPECTED=5
103-
ACTUAL=$(ldd ./target/debug/tmc-langs-cli | wc -l)
103+
ACTUAL=$(ldd ./target/x86_64-unknown-linux-gnu/debug/tmc-langs-cli | wc -l)
104104
if [ $ACTUAL -ne $EXPECTED ]; then
105105
echo "::error title=unexpected-dynamic-libraries::Expected $EXPECTED dynamic libraries, found $ACTUAL"
106+
exit 1
107+
fi
108+
109+
- name: Check number of dynamic libraries hasn't changed
110+
if: matrix.os == 'macos-latest'
111+
run: |
112+
EXPECTED=5
113+
ACTUAL=$(ldd ./target/aarch64-apple-darwin/debug/tmc-langs-cli | wc -l)
114+
if [ $ACTUAL -ne $EXPECTED ]; then
115+
echo "::error title=unexpected-dynamic-libraries::Expected $EXPECTED dynamic libraries, found $ACTUAL"
116+
exit 1
106117
fi

0 commit comments

Comments
 (0)