Skip to content
Merged
Show file tree
Hide file tree
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
49 changes: 16 additions & 33 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,24 @@
name: CI/CD

on: [push, pull_request]
on:
workflow_dispatch:
pull_request:
push:
branches:
- main

jobs:
build:
runs-on: [self-hosted, ros2-humble]
runs-on: ubuntu-22.04
container:
image: rostooling/setup-ros-docker:ubuntu-jammy-latest
steps:
# - name: Setup ROS
# uses: ros-tooling/setup-ros@v0.3
# with:
# required-ros-distributions: noetic
- uses: actions/checkout@v4

# - name: Install packages
# run: sudo apt-get install python3-catkin-tools xorg-dev libjsoncpp-dev qtbase5-dev

- name: Setup catkin workspace
run: source /opt/ros/humble/setup.bash

- name: Check out repo
uses: actions/checkout@v3
with:
token: ${{ secrets.CI_TOKEN }}
path: src/image_matching

- name: Check out bb_msgs
uses: actions/checkout@v3
- name: Build ROS 2 package
uses: ros-tooling/action-ros-ci@v0.3
with:
repository: BumblebeeAS/bb_msgs
token: ${{ secrets.CI_TOKEN }}
path: src/bb_msgs
ref: humble

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

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

# - name: Run tests
# run: source devel/setup.bash && ./src/image_matching/tests/test_matcher_service.py
package-name: image_matching
target-ros2-distro: humble
vcs-repo-file-url: ${{ github.workspace }}/.github/workflows/deps.repos
skip-tests: true
9 changes: 9 additions & 0 deletions .github/workflows/deps.repos
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
repositories:
bb_msgs:
type: git
url: https://github.com/BumblebeeAS/bb_msgs.git
version: humble
image_processing:
type: git
url: https://github.com/BumblebeeAS/image_processing.git
version: main
2 changes: 1 addition & 1 deletion package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<!-- 3rd party -->
<exec_depend>image_transport</exec_depend>
<exec_depend>python-opencv-contrib-pip</exec_depend>
<exec_depend>python3-transforms3d-pip</exec_depend>
<exec_depend>python-transforms3d-pip</exec_depend>
<exec_depend>python3-imutils-pip</exec_depend>
<exec_depend>rosidl_default_runtime</exec_depend>

Expand Down
Loading