Skip to content

Commit 43e31a4

Browse files
committed
Limit native library verification to MLXSharp package
1 parent df5d660 commit 43e31a4

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,21 @@ jobs:
9696
missing=0
9797
for package in "${packages[@]}"; do
9898
echo "Inspecting ${package}"
99-
if unzip -l "${package}" | grep -q "runtimes/osx-arm64/native/libmlxsharp.dylib"; then
100-
echo " ✓ Native library found"
101-
else
102-
echo " ✗ Native library NOT found"
103-
unzip -l "${package}"
104-
missing=1
105-
fi
99+
filename=$(basename "${package}")
100+
case "${filename}" in
101+
MLXSharp.*.nupkg)
102+
if unzip -l "${package}" | grep -q "runtimes/osx-arm64/native/libmlxsharp.dylib"; then
103+
echo " ✓ Native library found"
104+
else
105+
echo " ✗ Native library NOT found"
106+
unzip -l "${package}"
107+
missing=1
108+
fi
109+
;;
110+
*)
111+
echo " ↷ Skipping native check for ${filename}"
112+
;;
113+
esac
106114
done
107115
108116
if [ $missing -ne 0 ]; then

0 commit comments

Comments
 (0)