-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (34 loc) · 1011 Bytes
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: ci
on:
workflow_dispatch:
pull_request:
push:
jobs:
ros:
strategy:
matrix:
ros_distro: [foxy, humble, rolling]
runs-on: ubuntu-latest
container: ghcr.io/picknikrobotics/ros_testing_templates:upstream-${{ matrix.ros_distro }}
env:
CCACHE_DIR: ${{ github.workspace }}/.ccache
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Cache ccache
uses: pat-s/always-upload-cache@v3
with:
path: ${{ env.CCACHE_DIR }}
key: ccache-ros-${{ matrix.ros_distro }}-${{ github.sha }}-${{ github.run_id }}
restore-keys: |
ccache-ros-${{ matrix.ros_distro }}-${{ github.sha }}
ccache-ros-${{ matrix.ros_distro }}
- uses: ros-tooling/[email protected]
with:
target-ros2-distro: ${{ matrix.ros_distro }}
colcon-defaults: |
{
"build": {
"mixin": ["ccache", "lld"]
}
}