Skip to content

Commit

Permalink
Updated ros2-ci.yml to checkout directly from rosflight repo
Browse files Browse the repository at this point in the history
  • Loading branch information
bsutherland333 committed Sep 8, 2023
1 parent d224795 commit eef869f
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/ros2-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit eef869f

Please sign in to comment.