Reuse existing msg pacakge instead of creating a new one #20
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ROS2 CI Workflow | |
| on: | |
| pull_request: | |
| branches: | |
| - ros2 | |
| - jazzy | |
| - jazzy-dev | |
| push: | |
| branches: | |
| - ros2 | |
| - jazzy | |
| - jazzy-dev | |
| jobs: | |
| build-ros2: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - { | |
| ros_distro: "jazzy" | |
| } | |
| - { | |
| ros_distro: "kilted" | |
| } | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ros:${{ matrix.config.ros_distro }} | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v2 | |
| - name: Create Workspace | |
| run: | | |
| mkdir -p src_tmp/vesc | |
| mv `find -maxdepth 1 -not -name . -not -name src_tmp` src_tmp/vesc/ | |
| mv src_tmp/ src/ | |
| - name: Install Dependencies | |
| run: | | |
| bash -c 'source /opt/ros/$ROS_DISTRO/setup.bash; \ | |
| apt-get update && rosdep update; \ | |
| rosdep install --from-paths src --ignore-src -y' | |
| - name: Build Workspace | |
| run: | | |
| bash -c 'source /opt/ros/$ROS_DISTRO/setup.bash; \ | |
| colcon build --event-handlers console_cohesion+' | |
| - name: Run Tests | |
| run: | | |
| bash -c 'source /opt/ros/$ROS_DISTRO/setup.bash; \ | |
| colcon test --event-handlers console_cohesion+; \ | |
| colcon test-result --verbose' |