Skip to content

Commit

Permalink
Added Iron CI (#49)
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
  • Loading branch information
ahcorde authored Jun 14, 2024
1 parent 4e34101 commit 1aa4e24
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: [iron]
pull_request:
types: [opened, reopened, synchronize]

jobs:
build-iron:
runs-on: ubuntu-latest
strategy:
fail-fast: false
container:
image: ros:iron-ros-core
steps:
- name: Checkout repo
uses: actions/checkout@v4
- 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 1aa4e24

Please sign in to comment.