Skip to content

Commit

Permalink
Use ROS_DISTRO instead of fixed version
Browse files Browse the repository at this point in the history
  • Loading branch information
msz-rai committed Jun 10, 2024
1 parent 6030034 commit 106f8a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
- run: '
docker build --build-context optix=${{ needs.load-env.outputs.optix-install-dir }}
--build-arg WITH_PCL=1 --build-arg WITH_ROS2=1
--build-arg BUILD_CMD=". /opt/ros/humble/setup.sh && ./setup.py --with-ros2-standalone"
--build-arg BUILD_CMD=". /opt/\$ROS_DISTRO/setup.sh && ./setup.py --with-ros2-standalone"
--target=exporter --output=bin-ros2 .'

build-udp:
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:
- run: '
docker build --build-context optix=${{ needs.load-env.outputs.optix-install-dir }}
--build-arg WITH_PCL=1 --build-arg WITH_ROS2=1
--build-arg BUILD_CMD=". /opt/ros/humble/setup.sh && ./setup.py --with-pcl --with-ros2-standalone --with-udp --with-snow --build-taped-test"
--build-arg BUILD_CMD=". /opt/\$ROS_DISTRO/setup.sh && ./setup.py --with-pcl --with-ros2-standalone --with-udp --with-snow --build-taped-test"
--target=exporter --output=bin-all .'

####### TEST WITH RGL DOCKER IMAGE ######
Expand Down Expand Up @@ -120,7 +120,7 @@ jobs:
# Source ROS2 and radar_msgs, standalone build is tested in prod environment
# Run tests twice, each for different RMW implementation
test-command: '
. /opt/ros/humble/setup.sh &&
. /opt/$ROS_DISTRO/setup.sh &&
. /opt/rgl/external/radar_msgs/install/setup.sh &&
cd bin-ros2/bin/test &&
export RMW_IMPLEMENTATION=rmw_fastrtps_cpp && ./RobotecGPULidar_test &&
Expand Down Expand Up @@ -151,7 +151,7 @@ jobs:
# Set `RGL_TEST_VLP16_CALIB_FILE` for UDP-ROS2 integration test
# Run tests twice, each for different RMW implementation
test-command: '
. /opt/ros/humble/setup.sh &&
. /opt/$ROS_DISTRO/setup.sh &&
. /opt/rgl/external/radar_msgs/install/setup.sh &&
export RGL_TEST_VLP16_CALIB_FILE=$(pwd)/extensions/udp/test/resources/Ros2Vlp16Calib.yaml &&
export RGL_TAPED_TEST_DATA_DIR=$(pwd)/external/rgl_blobs &&
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test-subworkflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:
options:
--rm
--gpus all
--workdir /opt/rgl-test # to not overwrite dependencies installed in docker image
steps:
- name: test
run: ${{ inputs.test-command }}

0 comments on commit 106f8a7

Please sign in to comment.