Skip to content
Merged
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
38 changes: 22 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,31 @@ on:

jobs:
build:
runs-on: [self-hosted, ros2-humble]
runs-on: ubuntu-22.04
container:
image: ros:humble-ros-base
defaults:
run:
shell: bash
steps:
- name: Setup colcon workspace
run: source /opt/ros/humble/setup.bash

- name: Check out repo
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v4
with:
path: src/bb_msgs
path: src/repo

- name: Install dependencies
run: source /opt/ros/humble/setup.bash && rosdep update && rosdep install --from-paths src -i -r -y
- name: Install rosdeps
run: |
apt-get update
rosdep update
rosdep install --from-paths src/repo --ignore-src -y

- name: Build
run: source /opt/ros/humble/setup.bash && colcon build --merge-install

run: |
source /opt/ros/humble/setup.bash
colcon build --event-handlers console_direct+

- name: Test
run: source /opt/ros/humble/setup.bash && colcon test --merge-install

- name: Log Tests if failed
if: failure()
run: colcon test-result --verbose
run: |
source /opt/ros/humble/setup.bash
colcon test --event-handlers console_direct+
colcon test-result --verbose
Loading