From 2a87a73d4a2fd2cde53f4e56165433fa26504c3d Mon Sep 17 00:00:00 2001 From: Vishniakov Nikolai Date: Wed, 15 Jan 2025 14:06:48 +0100 Subject: [PATCH] Don't use hardcoded version number --- .github/workflows/linux.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index d234a8ae9a..c7ada5d217 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -439,8 +439,8 @@ jobs: - name: Build with ENABLE_JS=ON run: | source ${{ env.OV_INSTALL_DIR }}/setupvars.sh - cmake -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} -DENABLE_JS=ON -S ${{ env.SRC_DIR}} -B ${{ env.BUILD_DIR }} - cmake --build ${{ env.BUILD_DIR}} --config ${{ matrix.build-type }} --parallel $(nproc) --verbose + cmake -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} -DENABLE_JS=ON -S ${{ env.SRC_DIR }} -B ${{ env.BUILD_DIR }} + cmake --build ${{ env.BUILD_DIR }} --config ${{ matrix.build-type }} --parallel $(nproc) --verbose cmake --install ${{ env.BUILD_DIR }} --config ${{ matrix.build-type }} --prefix ${{ env.INSTALL_DIR }} - name: Combine binaries for Node.js package @@ -449,7 +449,8 @@ jobs: cp runtime/lib/intel64/* nodejs cp runtime/3rdparty/tbb/lib/* nodejs cp genai_node_addon.node nodejs - patchelf --set-rpath '$ORIGIN' libopenvino.so.2025.0.0 + OV_VERSION=$(grep -oP '(?<=CMAKE_PROJECT_VERSION:STATIC=)[^"]*' ${{ env.BUILD_DIR }}/CMakeCache.txt | sed 's/..$//') + patchelf --set-rpath '$ORIGIN' libopenvino.so.$OV_VERSION working-directory: ${{ env.INSTALL_DIR }} - name: Pack Node.js bindings libs