-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated ros2-ci.yml to checkout directly from rosflight repo
- Loading branch information
1 parent
d224795
commit eef869f
Showing
1 changed file
with
14 additions
and
8 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 |
---|---|---|
|
@@ -11,7 +11,7 @@ env: | |
|
||
jobs: | ||
build: | ||
name: Build on ros2 ${{ matrix.ros_distro }} and ${{ matrix.os }} | ||
name: Build on ROS2 ${{ matrix.ros_distro }} and ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
|
@@ -24,33 +24,39 @@ jobs: | |
os: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: ros-tooling/[email protected] | ||
- name: Setup ROS | ||
uses: ros-tooling/[email protected] | ||
with: | ||
required-ros-distributions: ${{ matrix.ros_distro }} | ||
|
||
- name: Setup ros2 workspace | ||
- name: Setup ROS2 workspace | ||
run: | | ||
source /opt/ros/${{ matrix.ros_distro }}/setup.bash | ||
mkdir -p ${{github.workspace}}/ros2_ws/src | ||
cd ${{github.workspace}}/ros2_ws | ||
colcon build | ||
- uses: actions/checkout@v3 | ||
- name: Checkout ROSplane | ||
uses: actions/checkout@v3 | ||
with: | ||
path: 'ros2_ws/src/rosplane' | ||
|
||
- uses: actions/checkout@v3 | ||
- name: Checkout rosflight_msgs | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: rosflight/rosflight_msgs | ||
path: 'ros2_ws/src/rosflight_msgs' | ||
repository: rosflight/rosflight | ||
path: 'ros2_ws/src/rosflight' | ||
sparse-checkout: | | ||
rosflight_msgs | ||
sparse-checkout-cone-mode: false | ||
|
||
- name: Install dependencies | ||
run: | | ||
cd ${{github.workspace}}/ros2_ws | ||
rosdep update | ||
rosdep install --from-paths ./ -i -y -r --rosdistro ${{ matrix.ros_distro }} | ||
- name: colcon build | ||
- name: Build ROSplane | ||
run: | | ||
source /opt/ros/${{ matrix.ros_distro }}/setup.bash | ||
cd ${{github.workspace}}/ros2_ws | ||
|