-
Notifications
You must be signed in to change notification settings - Fork 45
55 lines (50 loc) · 1.6 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# This config uses industrial_ci (https://github.com/ros-industrial/industrial_ci.git).
# For troubleshooting, see readme (https://github.com/ros-industrial/industrial_ci/blob/master/README.rst)
name: CI
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
jobs:
ci:
strategy:
fail-fast: false
matrix:
env:
- ROS_DISTRO: rolling
ROS_REPO: testing
- ROS_DISTRO: rolling
ROS_REPO: main
- ROS_DISTRO: iron
ROS_REPO: testing
- ROS_DISTRO: iron
ROS_REPO: main
- ROS_DISTRO: humble
ROS_REPO: testing
- ROS_DISTRO: humble
ROS_REPO: main
env:
BASEDIR: ${{ github.workspace }}/.work
UPSTREAM_WORKSPACE: upstream.repos
name: ${{ matrix.env.ROS_DISTRO }}-${{ matrix.env.ROS_REPO }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: ici
name: Run industrial_ci
uses: ros-industrial/industrial_ci@master
env: ${{ matrix.env }}
- name: Upload test artifacts (on failure)
uses: actions/upload-artifact@v4
if: failure() && (steps.ici.outputs.run_target_test || steps.ici.outputs.target_test_results)
with:
name: test-results-${{ matrix.env.NAME }}
path: ${{ env.BASEDIR }}/target_ws/**/test_results/**/*.xml
- name: Upload log artifacts (on failure)
uses: actions/upload-artifact@v4
if: failure()
with:
name: test-results-${{ matrix.env.NAME }}
path: ${{ env.BASEDIR }}/target_ws/log/*