Skip to content

Commit

Permalink
Fix Rolling agent (#701)
Browse files Browse the repository at this point in the history
* Fix Rolling agent

Signed-off-by: Pablo Garrido <[email protected]>

* Remove Agent workflow

---------

Signed-off-by: Pablo Garrido <[email protected]>
  • Loading branch information
pablogs9 authored Jun 3, 2024
1 parent d72e75e commit cbe5088
Showing 1 changed file with 50 additions and 49 deletions.
99 changes: 50 additions & 49 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
path: src/micro_ros_setup
ref: ${{ inputs.ci_target_ref }}

- uses: ros-tooling/[email protected].0
- uses: ros-tooling/[email protected].7
with:
use-ros2-testing: false
required-ros-distributions: ${{ env.ROS_DISTRO }}
Expand All @@ -51,53 +51,54 @@ jobs:
name: micro_ros_build_${{ inputs.ci_target_ref }}
path: install

micro_ros_agent:
runs-on: ubuntu-latest
container:
image: ubuntu:jammy
strategy:
fail-fast: false
needs: micro_ros_build

steps:
- uses: actions/checkout@v4
with:
path: src/micro_ros_setup
ref: ${{ inputs.ci_target_ref }}

- uses: ros-tooling/[email protected]
with:
use-ros2-testing: false
required-ros-distributions: ${{ env.ROS_DISTRO }}

- name: dependencies
run: |
apt update
apt install -y python3-pip
pip3 install colcon-common-extensions
apt install -y ros-${{ env.ROS_DISTRO }}-rmw-fastrtps-cpp
rosdep update --rosdistro ${{ env.ROS_DISTRO }}
rosdep install --rosdistro ${{ env.ROS_DISTRO }} -y --from-paths src --ignore-src -y
- uses: actions/download-artifact@v1
with:
name: micro_ros_build_${{ inputs.ci_target_ref }}
path: install

# Workaround https://github.com/actions/upload-artifact/issues/38
- run: |
chmod +x -R install
- name: build
run: |
. /opt/ros/${{ env.ROS_DISTRO }}/setup.sh
. install/local_setup.sh
ros2 run micro_ros_setup create_agent_ws.sh
ros2 run micro_ros_setup build_agent.sh
- name: installation
run: |
(test -f install/micro_ros_agent/lib/micro_ros_agent/micro_ros_agent) && true || false
# Skiped due to libfastcdr version 1 distributed en ROS 2 Rolling
# micro_ros_agent:
# runs-on: ubuntu-latest
# container:
# image: ubuntu:jammy
# strategy:
# fail-fast: false
# needs: micro_ros_build

# steps:
# - uses: actions/checkout@v4
# with:
# path: src/micro_ros_setup
# ref: ${{ inputs.ci_target_ref }}

# - uses: ros-tooling/[email protected]
# with:
# use-ros2-testing: false
# required-ros-distributions: ${{ env.ROS_DISTRO }}

# - name: dependencies
# run: |
# apt update
# apt install -y python3-pip
# pip3 install colcon-common-extensions
# apt install -y ros-${{ env.ROS_DISTRO }}-rmw-fastrtps-cpp
# rosdep update --rosdistro ${{ env.ROS_DISTRO }}
# rosdep install --rosdistro ${{ env.ROS_DISTRO }} -y --from-paths src --ignore-src -y

# - uses: actions/download-artifact@v1
# with:
# name: micro_ros_build_${{ inputs.ci_target_ref }}
# path: install

# # Workaround https://github.com/actions/upload-artifact/issues/38
# - run: |
# chmod +x -R install

# - name: build
# run: |
# . /opt/ros/${{ env.ROS_DISTRO }}/setup.sh
# . install/local_setup.sh
# ros2 run micro_ros_setup create_agent_ws.sh
# ros2 run micro_ros_setup build_agent.sh

# - name: installation
# run: |
# (test -f install/micro_ros_agent/lib/micro_ros_agent/micro_ros_agent) && true || false

micro_ros_client:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -213,7 +214,7 @@ jobs:
path: src/micro_ros_setup
ref: ${{ inputs.ci_target_ref }}

- uses: ros-tooling/[email protected].0
- uses: ros-tooling/[email protected].7
with:
use-ros2-testing: false
required-ros-distributions: ${{ env.ROS_DISTRO }}
Expand Down

0 comments on commit cbe5088

Please sign in to comment.