Skip to content

Commit

Permalink
Specify RPATH for genai library
Browse files Browse the repository at this point in the history
  • Loading branch information
vishniakov-nikolai committed Jan 15, 2025
1 parent 1208f36 commit 52d6156
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,9 @@ jobs:
cp -r runtime/lib/intel64/* nodejs
cp -r runtime/3rdparty/tbb/lib/* nodejs
cp genai_node_addon.node nodejs
OV_VERSION=$(grep -oP '(?<=CMAKE_PROJECT_VERSION:STATIC=)[^"]*' ${{ env.BUILD_DIR }}/CMakeCache.txt | sed 's/..$//')
patchelf --set-rpath '$ORIGIN' nodejs/libopenvino.so.$OV_VERSION
GENAI_VERSION=$(grep -oP '(?<=CMAKE_PROJECT_VERSION:STATIC=)[^"]*' ${{ env.BUILD_DIR }}/CMakeCache.txt)
OV_VERSION=$($GENAI_VERSION | sed 's/..$//')
patchelf --set-rpath '$ORIGIN' nodejs/libopenvino.so.$OV_VERSION nodejs/libopenvino_genai.so.$GENAI_VERSION
working-directory: ${{ env.OV_INSTALL_DIR }}

- name: Pack Node.js bindings libs
Expand Down

0 comments on commit 52d6156

Please sign in to comment.