Skip to content

Commit debf49d

Browse files
committed
use llvm-readelf for android
1 parent 71a8549 commit debf49d

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/opencvsharp.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -235,11 +235,17 @@ jobs:
235235
ls -lR
236236
echo "::endgroup::"
237237
238-
if [[ ${{ matrix.runs-on }} =~ ^ubuntu ]]; then
239-
ldd OpenCvSharpExtern/libOpenCvSharpExtern.so
240-
elif [[ ${{ matrix.os }} =~ ^osx ]]; then
241-
otool -L OpenCvSharpExtern/libOpenCvSharpExtern.dylib
242-
fi
238+
case "${{ matrix.os }}" in
239+
android)
240+
llvm-readelf -d OpenCvSharpExtern/libOpenCvSharpExtern.so | grep NEEDED
241+
;;
242+
linux)
243+
ldd OpenCvSharpExtern/libOpenCvSharpExtern.so
244+
;;
245+
osx*)
246+
otool -L OpenCvSharpExtern/libOpenCvSharpExtern.dylib
247+
;;
248+
esac
243249
244250
- name: Make artifacts
245251
run: |

0 commit comments

Comments
 (0)