Skip to content

Commit

Permalink
Another attempt at fixing the RPATH issue in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Sep 28, 2024
1 parent 53b091d commit cf7ad1b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,21 @@ jobs:
run: cmake --build out/build --parallel --config ${{ env.BUILD_TYPE }}

- name: Inspect build outputs
run: ls -lh out/build/bin/*
if: env.OPERATING_SYSTEM == 'linux'
run: |
ls -lh out/build/bin/*
(cd out/build/bin/* && for f in *; do echo $f; objdump -p $f | grep -P 'RUNPATH|RPATH' || true; done)
- name: Debug dynamic linking issue
if: env.OPERATING_SYSTEM == 'linux'
env:
LD_DEBUG: libs
run: cd out/build/bin/*; ./common_test

- name: Unit Tests
run: ctest --test-dir out/build --build-config ${{ env.BUILD_TYPE }} --output-on-failure
env:
LD_DEBUG: libs
run: export LD_DEBUG=libs; ctest --test-dir out/build --build-config ${{ env.BUILD_TYPE }} --output-on-failure

- name: Regression Tests
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion cmake/third_party.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ function(copy_third_party_shared_libs target_dir)
set(pattern "*.so*")
endif()
file(GLOB_RECURSE libs "${CONAN_DEPLOYER_DIR}/*/${pattern}")
file(COPY ${libs} DESTINATION "${target_dir}")
file(COPY ${libs} DESTINATION "${target_dir}" PERMISSIONS OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE)
endfunction()

0 comments on commit cf7ad1b

Please sign in to comment.