Skip to content

Commit

Permalink
Added CI Github action
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 28, 2024
1 parent b53c4da commit 5955787
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: [rolling]
pull_request:
types: [opened, reopened, synchronize]

jobs:
build-rolling:
runs-on: ubuntu-latest
strategy:
fail-fast: false
container:
image: osrf/ros2:testing
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 && 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 5955787

Please sign in to comment.