Skip to content

Source Build

Source Build #52

Workflow file for this run

name: Source Build
on:
pull_request:
# runs daily to check for dependency issues or flaking tests
schedule:
- cron: "0 3 * * *"
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Setup ROS 2 Environment
uses: ros-tooling/[email protected]
with:
required-ros-distributions: humble
- name: Checkout Repository
uses: actions/checkout@v4
with:
path: ros2_ws/src/${{ github.event.repository.name }}
- name: Import Dependencies with vcs
run: |
cd ${{ github.workspace }}/ros2_ws/src
vcs import . < ${{ github.workspace }}/ros2_ws/src/${{ github.event.repository.name }}/ros2.repos
- name: Install Package Dependencies with rosdep
run: |
cd ${{ github.workspace }}/ros2_ws
source /opt/ros/humble/setup.bash
rosdep update
rosdep install --from-paths src --ignore-src -r -y
- name: Build ROS 2 Workspace
run: |
cd ${{ github.workspace }}/ros2_ws
source /opt/ros/humble/setup.bash
colcon build --event-handlers console_cohesion+
- name: Run Tests
run: |
cd ${{ github.workspace }}/ros2_ws
source /opt/ros/humble/setup.bash
colcon test --event-handlers console_direct+
- name: Test Results Summary
run: |
cd ${{ github.workspace }}/ros2_ws
source /opt/ros/humble/setup.bash
colcon test-result --verbose