From 1325442eb5e6c63997f58fa19e660548ab2e4617 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 23 May 2022 07:57:01 +0200 Subject: [PATCH] Update CI (backport #135) (#139) * Humble release (#135) * Modify CI * Update Signed-off-by: Pablo Garrido * Update Signed-off-by: Pablo Garrido * Update .github/workflows/ci.yml * Update .github/workflows/ci.yml * Modify CI * Update to ubuntu latest * Use pre-release repository * Use ubuntu-20.04 * Fix * Revert changes Co-authored-by: Pablo Garrido (cherry picked from commit b0ebf5ab3fee77584b1962cf69ce74ed70968fd0) # Conflicts: # .github/workflows/ci.yml * Update with foxy * Update .github/workflows/ci.yml Co-authored-by: Antonio Cuadros <49162117+Acuadros95@users.noreply.github.com> Co-authored-by: acuadros95 --- .github/workflows/ci.yml | 56 ++++++++++++++++++++-------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8d30a81..fee9efc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,36 +3,36 @@ name: CI micro-ROS Agent on: pull_request: branches: - - '**' + - 'foxy' + schedule: + - cron: '33 6 * * *' jobs: microros_agent_ci: - runs-on: ubuntu-20.04 - container: microros/base:foxy + runs-on: ubuntu-20.04 + strategy: + fail-fast: false + matrix: + os: [ ubuntu-20.04 ] + ros_distribution: [ foxy ] + include: + - docker_image: ubuntu:20.04 + ros_distribution: foxy + container: + image: ubuntu:20.04 + steps: + - uses: actions/checkout@v2 + - uses: ros-tooling/setup-ros@0.3.2 + with: + use-ros2-testing: false + required-ros-distributions: ${{ matrix.ros_distribution }} + - name : Download and install dependencies + run: | + apt-get install ros-${{ matrix.ros_distribution }}-micro-ros-msgs + apt-get install ros-${{ matrix.ros_distribution }}-rmw-fastrtps-cpp + - uses : ros-tooling/action-ros-ci@0.2.5 + with: + package-name: "micro_ros_agent" + target-ros2-distro: ${{ matrix.ros_distribution }} - steps: - - uses: actions/checkout@v2 - with: - path: urosagent - - - name: Download dependencies - run: | - apt update - cd /uros_ws - . /opt/ros/$ROS_DISTRO/setup.sh - . install/local_setup.sh - rosdep update --rosdistro=$ROS_DISTRO - ros2 run micro_ros_setup create_agent_ws.sh - - - name: Patch branch - run: | - rm -rf /uros_ws/src/uros/micro-ROS-Agent/* - cp -R urosagent/* /uros_ws/src/uros/micro-ROS-Agent/ - - - name: Build - run: | - cd /uros_ws - . /opt/ros/$ROS_DISTRO/setup.sh - . install/local_setup.sh - ros2 run micro_ros_setup build_agent.sh \ No newline at end of file