Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
czoido committed Nov 11, 2024
1 parent 40b1e99 commit e25a3c6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 19 deletions.
20 changes: 2 additions & 18 deletions .github/workflows/ros-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,7 @@ jobs:
# Set up ROS environment and run the example with Conan release version
shell: bash
run: |
source /opt/ros/humble/setup.bash
conan profile detect
cd examples/tools/ros/rosenv/workspace
conan install str_printer/conanfile.txt --build=missing --output-folder install/conan
source install/conan/conanrosenv.sh
colcon build --packages-select str_printer
colcon build --packages-select consumer
source install/setup.bash
ros2 run consumer main
./examples/tools/ros/rosenv/workspace/test_ros.sh
# Test with Conan version from develop2 branch
- name: Uninstall Conan release
Expand All @@ -53,12 +45,4 @@ jobs:
- name: Run example with Conan from repo
shell: bash
run: |
source /opt/ros/humble/setup.bash
conan profile detect
cd examples/tools/ros/rosenv/workspace
conan install str_printer/conanfile.txt --build=missing --output-folder install/conan
source install/conan/conanrosenv.sh
colcon build --packages-select str_printer
colcon build --packages-select consumer
source install/setup.bash
ros2 run consumer main
./examples/tools/ros/rosenv/workspace/test_ros.sh
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,6 @@ examples/tools/google/bazeltoolchain/7_x/string_formatter/MODULE.bazel.lock
examples/libraries/libcurl/ascii_art_color/conan/*
examples/libraries/libcurl/ascii_art_color/asciiartgen/x64/*
examples/libraries/libcurl/ascii_art_color/x64/Release/*
examples/tools/ros/rosenv/workspace/*

examples/tools/ros/rosenv/workspace/install/
examples/tools/ros/rosenv/workspace/log/
12 changes: 12 additions & 0 deletions examples/tools/ros/rosenv/workspace/test_ros.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
source /opt/ros/humble/setup.bash
conan profile detect --force
cd examples/tools/ros/rosenv/workspace
conan install str_printer/conanfile.txt --build=missing --output-folder install/conan
source install/conan/conanrosenv.sh
colcon build --packages-select str_printer
colcon build --packages-select consumer
source install/setup.bash
ros2 run consumer main
rm -rf ./install
rm -rf ./log
rm -rf ./build

0 comments on commit e25a3c6

Please sign in to comment.