Skip to content

Commit

Permalink
Add workflow for ROS2
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Bonnefille <[email protected]>
  • Loading branch information
Taumille committed Oct 19, 2023
1 parent 3868370 commit 18fc41b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/compilation_verif.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Compile ROS2

run-name: ${{ github.actor }} try to compile ROS2 for ${{ github.repository }}

on: [push]
jobs:
Build_packages:
runs-on: ros
steps:
- run: echo "Checking out the repository"
- uses: actions/checkout@v4
- name:
run: |
echo "Repository name : " $(ls)
echo "Removing old files..."
- run: rm -rf ../../ROS2_main_dir/src/$(ls ..)
- run: echo "Copy files..."
- run: cp -r ../$(ls ..) ../../ROS2_main_dir/src
- run: REPO_NAME=$(ls ..) && source /opt/ros/humble/setup.sh && cd ../../ROS2_main_dir/ && colcon build --packages-up-to $REPO_NAME

0 comments on commit 18fc41b

Please sign in to comment.