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
24 changes: 17 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,37 @@ name: ROS2 Build

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

jobs:
build:
runs-on: ubuntu-22.04
container:
image: ros:humble-ros-base

steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: Install Python dependencies
run: python3 -m pip install -r requirements.txt

- name: Install system dependencies
run: |
apt-get update
apt-get install -y python3-colcon-common-extensions
bash dependencies.sh
rosdep update
rosdep install --from-paths . --ignore-src -r -y
shell: bash

- name: Build workspace
run: |
source /opt/ros/humble/setup.bash
Expand Down
11 changes: 11 additions & 0 deletions dependencies.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

set -euo pipefail

pkgs=(
python3-colcon-common-extensions
)

for pkg in "${pkgs[@]}"; do
apt-get install -y "$pkg"
done
5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pygame
catkin_pkg
empy==3.3.4
lark
numpy