diff --git a/.github/workflows/humble-binary-main.yml b/.github/workflows/humble-binary-main.yml index af1e46ef..a3a052d9 100644 --- a/.github/workflows/humble-binary-main.yml +++ b/.github/workflows/humble-binary-main.yml @@ -1,15 +1,12 @@ name: Humble Binary Build Main on: workflow_dispatch: - branches: - - humble schedule: # Run every morning to detect flakiness and broken dependencies - cron: '03 5 * * *' - jobs: - binary: + humble_binary_main: uses: ./.github/workflows/reusable_ici.yml with: ros_distro: humble diff --git a/.github/workflows/humble-binary-testing.yml b/.github/workflows/humble-binary-testing.yml index e670e729..4d8434c6 100644 --- a/.github/workflows/humble-binary-testing.yml +++ b/.github/workflows/humble-binary-testing.yml @@ -1,15 +1,13 @@ name: Humble Binary Build Testing on: workflow_dispatch: - branches: - - humble schedule: # Run every morning to detect flakiness and broken dependencies - cron: '03 5 * * *' jobs: - binary: + humble_binary_testing: uses: ./.github/workflows/reusable_ici.yml with: ros_distro: humble diff --git a/.github/workflows/humble-semi-binary-main.yml b/.github/workflows/humble-semi-binary-main.yml index a42d19c9..6ba0af5c 100644 --- a/.github/workflows/humble-semi-binary-main.yml +++ b/.github/workflows/humble-semi-binary-main.yml @@ -1,15 +1,13 @@ name: Humble Semi Binary Build Main on: workflow_dispatch: - branches: - - humble schedule: # Run every morning to detect flakiness and broken dependencies - cron: '03 5 * * *' jobs: - binary: + humble_semi_main: uses: ./.github/workflows/reusable_ici.yml with: ros_distro: humble diff --git a/.github/workflows/humble-semi-binary-testing.yml b/.github/workflows/humble-semi-binary-testing.yml index 141eb71f..63a1de1e 100644 --- a/.github/workflows/humble-semi-binary-testing.yml +++ b/.github/workflows/humble-semi-binary-testing.yml @@ -1,15 +1,13 @@ name: Humble Semi Binary Build Testing on: workflow_dispatch: - branches: - - humble schedule: # Run every morning to detect flakiness and broken dependencies - cron: '03 5 * * *' jobs: - binary: + humble_semi_testing: uses: ./.github/workflows/reusable_ici.yml with: ros_distro: humble diff --git a/.github/workflows/iron-binary-main.yml b/.github/workflows/iron-binary-main.yml index d089e1dc..0794b21d 100644 --- a/.github/workflows/iron-binary-main.yml +++ b/.github/workflows/iron-binary-main.yml @@ -1,8 +1,6 @@ name: Iron Binary Build Main on: workflow_dispatch: - branches: - - iron pull_request: branches: - iron @@ -14,7 +12,7 @@ on: - cron: '13 5 * * *' jobs: - binary: + iron_binary_main: uses: ./.github/workflows/reusable_ici.yml with: ros_distro: iron diff --git a/.github/workflows/iron-binary-testing.yml b/.github/workflows/iron-binary-testing.yml index ba891860..7c9d272e 100644 --- a/.github/workflows/iron-binary-testing.yml +++ b/.github/workflows/iron-binary-testing.yml @@ -1,8 +1,6 @@ name: Iron Binary Build Testing on: workflow_dispatch: - branches: - - iron pull_request: branches: - iron @@ -14,7 +12,7 @@ on: - cron: '13 5 * * *' jobs: - binary: + iron_binary_testing: uses: ./.github/workflows/reusable_ici.yml with: ros_distro: iron diff --git a/.github/workflows/iron-semi-binary-main.yml b/.github/workflows/iron-semi-binary-main.yml index 01340fd5..ca5c47d0 100644 --- a/.github/workflows/iron-semi-binary-main.yml +++ b/.github/workflows/iron-semi-binary-main.yml @@ -1,8 +1,6 @@ name: Iron Semi Binary Build Main on: workflow_dispatch: - branches: - - iron pull_request: branches: - iron @@ -14,7 +12,7 @@ on: - cron: '13 5 * * *' jobs: - binary: + iron_semi_main: uses: ./.github/workflows/reusable_ici.yml with: ros_distro: iron diff --git a/.github/workflows/iron-semi-binary-testing.yml b/.github/workflows/iron-semi-binary-testing.yml index 809cea56..04b02d29 100644 --- a/.github/workflows/iron-semi-binary-testing.yml +++ b/.github/workflows/iron-semi-binary-testing.yml @@ -1,8 +1,6 @@ name: Iron Semi Binary Build Testing on: workflow_dispatch: - branches: - - iron pull_request: branches: - iron @@ -14,7 +12,7 @@ on: - cron: '13 5 * * *' jobs: - binary: + iron_semi_testing: uses: ./.github/workflows/reusable_ici.yml with: ros_distro: iron diff --git a/.github/workflows/jazzy-binary-main.yml b/.github/workflows/jazzy-binary-main.yml index 5b8912f7..9a5d52e3 100644 --- a/.github/workflows/jazzy-binary-main.yml +++ b/.github/workflows/jazzy-binary-main.yml @@ -1,8 +1,6 @@ name: Jazzy Binary Build Main on: workflow_dispatch: - branches: - - main pull_request: branches: - main @@ -14,7 +12,7 @@ on: - cron: '13 4 * * *' jobs: - binary: + jazzy_binary_main: uses: ./.github/workflows/reusable_ici.yml with: ros_distro: jazzy diff --git a/.github/workflows/jazzy-binary-testing.yml b/.github/workflows/jazzy-binary-testing.yml index ed4bb7f0..e8a0e3a4 100644 --- a/.github/workflows/jazzy-binary-testing.yml +++ b/.github/workflows/jazzy-binary-testing.yml @@ -1,8 +1,6 @@ name: Jazzy Binary Build Testing on: workflow_dispatch: - branches: - - main pull_request: branches: - main @@ -14,7 +12,7 @@ on: - cron: '13 4 * * *' jobs: - binary: + jazzy_binary_testing: uses: ./.github/workflows/reusable_ici.yml with: ros_distro: jazzy diff --git a/.github/workflows/jazzy-semi-binary-main.yml b/.github/workflows/jazzy-semi-binary-main.yml index 26fc5b8e..006291bf 100644 --- a/.github/workflows/jazzy-semi-binary-main.yml +++ b/.github/workflows/jazzy-semi-binary-main.yml @@ -1,8 +1,6 @@ name: Jazzy Semi Binary Build Main on: workflow_dispatch: - branches: - - main pull_request: branches: - main @@ -14,7 +12,7 @@ on: - cron: '13 4 * * *' jobs: - binary: + jazzy_semi_main: uses: ./.github/workflows/reusable_ici.yml with: ros_distro: jazzy diff --git a/.github/workflows/jazzy-semi-binary-testing.yml b/.github/workflows/jazzy-semi-binary-testing.yml index e423d0ef..b66ce480 100644 --- a/.github/workflows/jazzy-semi-binary-testing.yml +++ b/.github/workflows/jazzy-semi-binary-testing.yml @@ -1,8 +1,6 @@ name: Jazzy Semi Binary Build Testing on: workflow_dispatch: - branches: - - main pull_request: branches: - main @@ -14,7 +12,7 @@ on: - cron: '13 4 * * *' jobs: - binary: + jazzy_semi_testing: uses: ./.github/workflows/reusable_ici.yml with: ros_distro: jazzy diff --git a/.github/workflows/reusable_ici.yml b/.github/workflows/reusable_ici.yml index 3a39b4c9..b19f1c43 100644 --- a/.github/workflows/reusable_ici.yml +++ b/.github/workflows/reusable_ici.yml @@ -28,23 +28,39 @@ on: default: '' required: false type: string + ccache_dir: + description: 'CCache dir that should be used. Relative to github.workspace' + default: '.ccache' + required: false + type: string jobs: reusable_ici: - name: ${{ inputs.ros_distro }} ${{ inputs.ros_repo }} ${{ inputs.os_code_name }} + name: ${{ inputs.ros_distro }} ${{ inputs.ros_repo }} runs-on: ubuntu-latest env: DOCKER_RUN_OPTS: '-v /var/run/docker.sock:/var/run/docker.sock --network ursim_net' + CCACHE_DIR: ${{ github.workspace }}/${{ inputs.ccache_dir }} + CACHE_PREFIX: ${{ inputs.ros_distro }}-${{ inputs.upstream_workspace }}-${{ inputs.ros_repo }}-${{ github.job }} steps: - - name: Checkout ${{ inputs.ref }} when build is not scheduled + - name: Checkout ${{ github.ref_name }} since build is not scheduled if: ${{ github.event_name != 'schedule' }} uses: actions/checkout@v4 - - name: Checkout ${{ inputs.ref }} on scheduled build + - name: Checkout ${{ inputs.ref_for_scheduled_build }} on scheduled build if: ${{ github.event_name == 'schedule' }} uses: actions/checkout@v4 with: ref: ${{ inputs.ref_for_scheduled_build }} - run: docker network create --subnet=192.168.56.0/24 ursim_net + if: ${{ !env.ACT }} + - name: Cache ccache + uses: actions/cache@v4 + with: + path: ${{ env.CCACHE_DIR }} + key: ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}-${{ github.run_id }} + restore-keys: | + ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }} + ccache-${{ env.CACHE_PREFIX }} - uses: 'ros-industrial/industrial_ci@master' env: UPSTREAM_WORKSPACE: ${{ inputs.upstream_workspace }} diff --git a/.github/workflows/rolling-binary-main.yml b/.github/workflows/rolling-binary-main.yml index 342c857d..3ca97484 100644 --- a/.github/workflows/rolling-binary-main.yml +++ b/.github/workflows/rolling-binary-main.yml @@ -1,8 +1,6 @@ name: Rolling Binary Build Main on: workflow_dispatch: - branches: - - main pull_request: branches: - main @@ -14,7 +12,7 @@ on: - cron: '13 4 * * *' jobs: - binary: + rolling_binary_main: uses: ./.github/workflows/reusable_ici.yml with: ros_distro: rolling diff --git a/.github/workflows/rolling-binary-testing.yml b/.github/workflows/rolling-binary-testing.yml index 54384986..0d042012 100644 --- a/.github/workflows/rolling-binary-testing.yml +++ b/.github/workflows/rolling-binary-testing.yml @@ -1,8 +1,6 @@ name: Rolling Binary Build Testing on: workflow_dispatch: - branches: - - main pull_request: branches: - main @@ -14,7 +12,7 @@ on: - cron: '13 4 * * *' jobs: - binary: + rolling_binary_testing: uses: ./.github/workflows/reusable_ici.yml with: ros_distro: rolling diff --git a/.github/workflows/rolling-semi-binary-main.yml b/.github/workflows/rolling-semi-binary-main.yml index c5399e37..743918c6 100644 --- a/.github/workflows/rolling-semi-binary-main.yml +++ b/.github/workflows/rolling-semi-binary-main.yml @@ -1,8 +1,6 @@ name: Rolling Semi Binary Build Main on: workflow_dispatch: - branches: - - main pull_request: branches: - main @@ -14,7 +12,7 @@ on: - cron: '13 4 * * *' jobs: - binary: + rolling_semi_main: uses: ./.github/workflows/reusable_ici.yml with: ros_distro: rolling diff --git a/.github/workflows/rolling-semi-binary-testing.yml b/.github/workflows/rolling-semi-binary-testing.yml index c4d06bf8..0c950780 100644 --- a/.github/workflows/rolling-semi-binary-testing.yml +++ b/.github/workflows/rolling-semi-binary-testing.yml @@ -1,8 +1,6 @@ name: Rolling Semi Binary Build Testing on: workflow_dispatch: - branches: - - main pull_request: branches: - main @@ -14,7 +12,7 @@ on: - cron: '13 4 * * *' jobs: - binary: + rolling_semi_testing: uses: ./.github/workflows/reusable_ici.yml with: ros_distro: rolling diff --git a/Universal_Robots_ROS2_Driver.jazzy.repos b/Universal_Robots_ROS2_Driver.jazzy.repos index c85d2328..96305e3a 100644 --- a/Universal_Robots_ROS2_Driver.jazzy.repos +++ b/Universal_Robots_ROS2_Driver.jazzy.repos @@ -27,3 +27,19 @@ repositories: type: git url: https://github.com/ros-controls/control_msgs.git version: master + realtime_tools: + type: git + url: https://github.com/ros-controls/realtime_tools.git + version: master + moveit2: + type: git + url: https://github.com/ros-planning/moveit2.git + version: main + moveit_msgs: + type: git + url: https://github.com/ros-planning/moveit_msgs.git + version: ros2 + srdfdom: + type: git + url: https://github.com/moveit/srdfdom.git + version: ros2 diff --git a/Universal_Robots_ROS2_Driver.rolling.repos b/Universal_Robots_ROS2_Driver.rolling.repos index c85d2328..96305e3a 100644 --- a/Universal_Robots_ROS2_Driver.rolling.repos +++ b/Universal_Robots_ROS2_Driver.rolling.repos @@ -27,3 +27,19 @@ repositories: type: git url: https://github.com/ros-controls/control_msgs.git version: master + realtime_tools: + type: git + url: https://github.com/ros-controls/realtime_tools.git + version: master + moveit2: + type: git + url: https://github.com/ros-planning/moveit2.git + version: main + moveit_msgs: + type: git + url: https://github.com/ros-planning/moveit_msgs.git + version: ros2 + srdfdom: + type: git + url: https://github.com/moveit/srdfdom.git + version: ros2