Skip to content

Commit bd01607

Browse files
committed
also try this one
1 parent 1fa3331 commit bd01607

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,14 @@ jobs:
4949
- name: Match rpath(linux only)
5050
if: matrix.runs-on == 'ubuntu-22.04'
5151
run: |
52-
cd ./tests/Sdcb.PaddleOCR.Tests/bin/Release/net8.0/runtimes/linux-x64/native
53-
patchelf --add-needed libmklml_intel.so libdnnl.so.3
54-
55-
# for so in $(find . -type f -name '*.so*'); do
56-
# echo "================ $so ================"
57-
# patchelf --set-rpath '$ORIGIN' "$so" || true
58-
# echo
59-
# done
52+
cd ./tests/Sdcb.PaddleOCR.Tests/bin/Release/net8.0/runtimes/linux-x64
6053
61-
# for so in $(find . -type f -name '*.so*'); do
62-
# echo "================ $so ================"
63-
# patchelf --print-rpath "$so" || true
64-
# echo
65-
# done
54+
if find . -type f -name 'libmklml_intel.so' -print -quit | grep -q .; then
55+
echo "libmklml_intel.so found, patching libdnnl.so.3..."
56+
patchelf --add-needed libmklml_intel.so libdnnl.so.3
57+
else
58+
echo "libmklml_intel.so not found, skip patchelf."
59+
fi
6660
6761
- name: Test
6862
shell: bash

0 commit comments

Comments
 (0)