Skip to content

Commit

Permalink
Added Humble CI
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
  • Loading branch information
ahcorde committed Jun 14, 2024
1 parent 1a43f43 commit 79af413
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/basic-build-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Basic Build Workflow

on:
push:
branches: [humble]
pull_request:
types: [opened, reopened, synchronize]

jobs:
build-humble:
runs-on: ubuntu-latest
strategy:
fail-fast: false
container:
image: ros:humble-ros-core
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Create Workspace
run: |
mkdir src_tmp
mv `find -maxdepth 1 -not -name . -not -name src_tmp` src_tmp/
mv src_tmp/ src/
- name: Install Prerequisites
run: |
bash -c 'source /opt/ros/$ROS_DISTRO/setup.bash; \
apt-get update && apt-get upgrade -y && apt-get install ros-dev-tools -y && rosdep init && 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'
- name: Run Tests
run: |
bash -c 'source /opt/ros/$ROS_DISTRO/setup.bash; \
colcon test; \
colcon test-result --verbose'

0 comments on commit 79af413

Please sign in to comment.