Skip to content

Commit 1180385

Browse files
authored
Prepare for branching out galactic (UniversalRobots#39)
* Add Humble to README and workflows * Use galactic branch for galactic stuff
1 parent a584902 commit 1180385

File tree

3 files changed

+63
-3
lines changed

3 files changed

+63
-3
lines changed

.github/workflows/binary-galactic.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: Galactic Binary Build
22
on:
33
pull_request:
44
branches:
5-
- ros2
5+
- galactic
66
push:
77
branches:
8-
- ros2
8+
- galactic
99
schedule:
1010
# Run every morning to detect flakiness and broken dependencies
1111
- cron: '53 5 * * *'
@@ -25,6 +25,8 @@ jobs:
2525
CACHE_PREFIX: ${{ matrix.ROS_DISTRO }}-${{ matrix.ROS_REPO }}
2626
steps:
2727
- uses: actions/checkout@v2
28+
with:
29+
ref: galactic
2830
# The target directory cache doesn't include the source directory because
2931
# that comes from the checkout. See "prepare target_ws for cache" task below
3032
- name: cache target_ws
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Humble Binary Build
2+
on:
3+
pull_request:
4+
branches:
5+
- ros2
6+
push:
7+
branches:
8+
- ros2
9+
schedule:
10+
# Run every morning to detect flakiness and broken dependencies
11+
- cron: '53 5 * * *'
12+
13+
jobs:
14+
humble_binary:
15+
name: humble binary build
16+
runs-on: ubuntu-latest
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
ROS_DISTRO: [humble]
21+
ROS_REPO: [main, testing]
22+
env:
23+
CCACHE_DIR: ${{ github.workspace }}/.ccache
24+
BASEDIR: ${{ github.workspace }}/.work
25+
CACHE_PREFIX: ${{ matrix.ROS_DISTRO }}-${{ matrix.ROS_REPO }}
26+
steps:
27+
- uses: actions/checkout@v2
28+
# The target directory cache doesn't include the source directory because
29+
# that comes from the checkout. See "prepare target_ws for cache" task below
30+
- name: cache target_ws
31+
if: ${{ ! matrix.CCOV }}
32+
uses: pat-s/[email protected]
33+
with:
34+
path: ${{ env.BASEDIR }}/target_ws
35+
key: target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}-${{ github.run_id }}
36+
restore-keys: |
37+
target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}
38+
- name: cache ccache
39+
uses: pat-s/[email protected]
40+
with:
41+
path: ${{ env.CCACHE_DIR }}
42+
key: ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}-${{ github.run_id }}
43+
restore-keys: |
44+
ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}
45+
ccache-${{ env.CACHE_PREFIX }}
46+
- uses: 'ros-industrial/industrial_ci@master'
47+
env:
48+
ROS_DISTRO: ${{ matrix.ROS_DISTRO }}
49+
ROS_REPO: ${{ matrix.ROS_REPO }}
50+
51+
- name: prepare target_ws for cache
52+
if: ${{ always() && ! matrix.CCOV }}
53+
run: |
54+
du -sh ${{ env.BASEDIR }}/target_ws
55+
sudo find ${{ env.BASEDIR }}/target_ws -wholename '*/test_results/*' -delete
56+
sudo rm -rf ${{ env.BASEDIR }}/target_ws/src
57+
du -sh ${{ env.BASEDIR }}/target_ws

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ This repository contains description files and meshes for *Universal Robots* man
66

77
ROS2 Distro | Branch | Build status | Released packages
88
:---------: | :----: | :----------: | :---------------:
9-
**Galactic** | [`ros2`](https://github.com/UniversalRobots/Universal_Robots_ROS2_Description/tree/ros2) | [![Galactic Binary Build](https://github.com/UniversalRobots/Universal_Robots_ROS2_Description/actions/workflows/binary-galactic.yml/badge.svg?branch=ros2)](https://github.com/UniversalRobots/Universal_Robots_ROS2_Description/actions/workflows/binary-galactic.yml?branch=ros2) <br /> | [ur_description](https://index.ros.org/p/ur_description/#galactic)
9+
**Galactic** | [`galactic`](https://github.com/UniversalRobots/Universal_Robots_ROS2_Description/tree/galactic) | [![Galactic Binary Build](https://github.com/UniversalRobots/Universal_Robots_ROS2_Description/actions/workflows/binary-galactic.yml/badge.svg?branch=galactic)](https://github.com/UniversalRobots/Universal_Robots_ROS2_Description/actions/workflows/binary-galactic.yml?branch=galactic) <br /> | [ur_description](https://index.ros.org/p/ur_description/#galactic)
10+
**Humble** | [`ros2`](https://github.com/UniversalRobots/Universal_Robots_ROS2_Description/tree/ros2) | [![Humble Binary Build](https://github.com/UniversalRobots/Universal_Robots_ROS2_Description/actions/workflows/binary-humble.yml/badge.svg?branch=ros2)](https://github.com/UniversalRobots/Universal_Robots_ROS2_Description/actions/workflows/binary-humble.yml?branch=ros2) <br /> | [ur_description](https://index.ros.org/p/ur_description/#humble)
1011
**Rolling** | [`ros2`](https://github.com/UniversalRobots/Universal_Robots_ROS2_Description/tree/ros2) | [![Rolling Binary Build](https://github.com/UniversalRobots/Universal_Robots_ROS2_Description/actions/workflows/binary-rolling.yml/badge.svg?branch=ros2)](https://github.com/UniversalRobots/Universal_Robots_ROS2_Description/actions/workflows/binary-rolling.yml?branch=ros2) <br /> | [ur_description](https://index.ros.org/p/ur_description/#rolling)
1112

1213

0 commit comments

Comments
 (0)