-
Notifications
You must be signed in to change notification settings - Fork 545
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: Alejandro Hernández Cordero <[email protected]>
- Loading branch information
Showing
1 changed file
with
37 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,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' |