Skip to content

Commit 1ba3288

Browse files
committed
rosci: configure cache
1 parent 0f98189 commit 1ba3288

1 file changed

Lines changed: 25 additions & 10 deletions

File tree

.github/workflows/ros_ci.yml

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,34 +20,49 @@ concurrency:
2020
cancel-in-progress: true
2121

2222
jobs:
23-
CI:
24-
name: ROS CI - ${{ matrix.env.ROS_DISTRO }}
23+
ros:
24+
name: ROS ${{ matrix.ROS_DISTRO }} - ${{ matrix.os }}
2525
strategy:
2626
fail-fast: false
2727
matrix:
28-
env:
29-
- {ROS_DISTRO: humble}
30-
- {ROS_DISTRO: jazzy}
31-
- {ROS_DISTRO: kilted}
32-
- {ROS_DISTRO: rolling}
28+
include:
29+
# ROS2 Humble Hawksbill (May 2022 - May 2027)
30+
- ROS_DISTRO: humble
31+
os: Ubuntu 22.04 (Jammy)
32+
33+
# ROS2 Jazzy Jalisco (May 2024 - May 2029)
34+
- ROS_DISTRO: jazzy
35+
os: Ubuntu 24.04 (Noble)
36+
37+
# ROS2 Kilted Kayu (May 2025 - December 2026)
38+
- ROS_DISTRO: kilted
39+
os: Ubuntu 24.04 (Noble)
40+
41+
# ROS2 Rolling Ridley
42+
- ROS_DISTRO: rolling
43+
os: Ubuntu 24.04 (Noble)
3344
env:
3445
PRERELEASE: true
35-
BUILDER: colcon
36-
ROS_DISTRO: ${{ matrix.env.ROS_DISTRO }}
3746
VERBOSE_OUTPUT: true
3847
VERBOSE_TESTS: true
48+
ROS_DISTRO: ${{ matrix.ROS_DISTRO }}
3949
CCACHE_DIR: ${{ github.workspace }}/.ccache
4050
runs-on: ubuntu-latest
4151
steps:
4252
- uses: actions/checkout@v6
53+
- uses: actions/cache@v4
54+
with:
55+
path: ${{ env.CCACHE_DIR }}
56+
key: ccache-${{ matrix.ROS_DISTRO }}-${{github.run_id}}
57+
restore-keys: ccache-${{ matrix.ROS_DISTRO }}-
4358
- uses: 'ros-industrial/industrial_ci@ba2a3d0f830f8051b356711a8df2fedfc5d256cf'
4459

4560
check:
4661
if: always()
4762
name: check-ros-ci
4863

4964
needs:
50-
- CI
65+
- ros
5166

5267
runs-on: ubuntu-latest
5368

0 commit comments

Comments
 (0)