From 7b4435bccd401fff0bda180b3cc242d56126cf30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Hern=C3=A1ndez=20Cordero?= Date: Thu, 22 Aug 2024 12:39:22 +0200 Subject: [PATCH] Build rolling from source, Iron and Jazzy from binaries and cron job too MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Alejandro Hernández Cordero --- .github/workflows/build.yaml | 59 +++++++++++++++++++++++++++--------- 1 file changed, 45 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 4bac5140..ea2977bc 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -4,21 +4,52 @@ on: push: branches: [ rolling ] workflow_dispatch: + schedule: + # Run every morning to detect flakiness and broken dependencies + - cron: '03 5 * * *' defaults: run: shell: bash jobs: - test: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - ROS_DISTRO: ['iron', 'jazzy', 'rolling'] - ROS_REPO: ['main', 'testing'] - timeout-minutes: 30 - steps: - - uses: actions/checkout@v4 - - uses: 'ros-industrial/industrial_ci@master' - env: - ROS_DISTRO: ${{ matrix.ROS_DISTRO }} - ROS_REPO: ${{ matrix.ROS_REPO }} + build_and_test_source_rolling: + runs-on: ubuntu-latest + container: + image: rostooling/setup-ros-docker:ubuntu-noble-latest + steps: + - name: Build and run tests + id: action-ros-ci + uses: ros-tooling/action-ros-ci@v0.3 + with: + package-name: | + rmw_zenoh_cpp + zenoh_c_vendor + target-ros2-distro: rolling + vcs-repo-file-url: https://raw.githubusercontent.com/ros2/ros2/rolling/ros2.repos + + build_and_test_binaries_jazzy: + runs-on: ubuntu-latest + container: + image: rostooling/setup-ros-docker:ubuntu-noble-latest + steps: + - name: Build and run tests + id: action-ros-ci + uses: ros-tooling/action-ros-ci@v0.3 + with: + package-name: | + rmw_zenoh_cpp + zenoh_c_vendor + target-ros2-distro: jazzy + + build_and_test_binaries_iron: + runs-on: ubuntu-latest + container: + image: rostooling/setup-ros-docker:ubuntu-noble-latest + steps: + - name: Build and run tests + id: action-ros-ci + uses: ros-tooling/action-ros-ci@v0.3 + with: + package-name: | + rmw_zenoh_cpp + zenoh_c_vendor + target-ros2-distro: iron