From 2d4305ce28b26241720258eb299eb9a9210bcf87 Mon Sep 17 00:00:00 2001 From: Thomas Bonnefille Date: Thu, 19 Oct 2023 23:39:09 +0200 Subject: [PATCH] Add workflow for ROS2 Signed-off-by: Thomas Bonnefille --- .github/workflows/compilation_verif.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/compilation_verif.yml diff --git a/.github/workflows/compilation_verif.yml b/.github/workflows/compilation_verif.yml new file mode 100644 index 0000000..cceb4b0 --- /dev/null +++ b/.github/workflows/compilation_verif.yml @@ -0,0 +1,23 @@ +name: Compile ROS2 + +run-name: ${{ github.actor }} try to compile ROS2 for ${{ github.repository }} + +on: [push] +jobs: + Checkout_the_repository: + runs-on: ros + steps: + - run: echo "Checking out the repository" + - uses: actions/checkout@v4 + Copy_to_usable_workspace: + runs-on: ros + steps: + - run: echo "Repository name : " $(ls) + - run: echo "Removing old files..." + - run: rm -rf ../../ROS2_main_dir/src/$(ls ..) + - run: echo "Copy files..." + - run: cp -r ../$(ls) ../../ROS2_main_dir/src/$(ls ..) + Build packages: + runs-on: ros + steps: + - run: REPO_NAME=$(ls ..) && cd ../../ROS2_main_dir/ && colcon build --packages-up-to $REPO_NAME