Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/ros2-lyrical.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: ros2-lyrical

on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
industrial_ci:
strategy:
matrix:
env:
# TARGET_CMAKE_ARGS emulates the ROS build farm (bloom/debhelper),
# which configures with -DCMAKE_INSTALL_LIBDIR=lib/<multiarch>.
# AFTER_SCRIPT asserts that the library is still installed to
# $prefix/lib, as required by ament tooling (see issue #1175).
- ROS_DISTRO: lyrical
ROS_REPO: main
TARGET_CMAKE_ARGS: -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu
AFTER_SCRIPT: >-
lib=$(find "$BASEDIR/target_ws/install" -name libbehaviortree_cpp.so);
echo "libbehaviortree_cpp.so installed at: ${lib:-NOT FOUND}";
[[ "$lib" == */install/behaviortree_cpp/lib/libbehaviortree_cpp.so ]]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: 'ros-industrial/industrial_ci@master'
env: ${{matrix.env}}
with:
package-name: behaviortree_cpp
10 changes: 10 additions & 0 deletions cmake/ament_build.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ set( BTCPP_EXTRA_LIBRARIES

ament_export_dependencies(ament_index_cpp)

# The ROS build farm (bloom/debhelper) configures with
# -DCMAKE_INSTALL_LIBDIR=lib/<multiarch-triplet>, but ament tooling
# (ament_export_libraries lookup, LD_LIBRARY_PATH environment hooks)
# only supports libraries installed to $prefix/lib. These plain set()
# calls intentionally shadow the GNUInstallDirs-based cache variables
# defined in the top-level CMakeLists.txt (see issue #1175).
set(BTCPP_LIB_DESTINATION lib)
set(BTCPP_INCLUDE_DESTINATION include)
set(BTCPP_BIN_DESTINATION bin)

mark_as_advanced(
BTCPP_EXTRA_LIBRARIES
BTCPP_EXTRA_INCLUDE_DIRS
Expand Down
Loading