-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Thomas Bonnefille <[email protected]>
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
Build packages: | ||
runs-on: ros | ||
steps: | ||
- run: REPO_NAME=$(ls ..) && cd ../../ROS2_main_dir/ && colcon build --packages-up-to $REPO_NAME |