-
Notifications
You must be signed in to change notification settings - Fork 45
96 lines (93 loc) · 3.66 KB
/
ROS-commit.yml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: ROS Commit
# Note: If the workflow name is changed, the CI badge URL in the README must also be updated
on:
push: # Push trigger runs on any pushed branch.
pull_request: # Run on new and updated PR's.
schedule: # Scheduled trigger runs on the latest commit on the default branch.
- cron: '0 22 * * *'
env:
NEWEST_ZIVID_VERSION: '2.13.1+18e79e79-1'
jobs:
code-analysis:
name: Analyze code
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
with:
lfs: false
- name: Run code_analysis.sh
run: |
CI_TEST_OS=ros:humble-ros-base-jammy \
./continuous-integration/run_code_analysis_in_docker.sh
- name: Notify Teams
if: ${{ failure() && github.ref == 'refs/heads/master' }}
env:
CI_FAILURE_TEAMS_HOOK: ${{ secrets.CI_FAILURE_TEAMS_HOOK }}
run: python continuous-integration/notify_teams.py --status ${{ job.status }}
build-and-test-newest-zivid:
name: Build driver and run tests for newest Zivid SDK
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
os: ['ros:humble-ros-base-jammy', 'ros:iron-ros-core-jammy', 'ros:jazzy-ros-core-noble']
compiler: ['g++', 'clang++']
include:
- os: 'ros:humble-ros-base-jammy'
compiler: 'g++-12'
- os: 'ros:humble-ros-base-jammy'
compiler: 'g++-13'
- os: 'ros:humble-ros-base-jammy'
compiler: 'clang++-15'
- os: 'ros:jazzy-ros-core-noble'
compiler: 'clang++-14'
- os: 'ros:jazzy-ros-core-noble'
compiler: 'clang++-15'
- os: 'ros:jazzy-ros-core-noble'
compiler: 'clang++-16'
- os: 'ros:jazzy-ros-core-noble'
compiler: 'clang++-17'
- os: 'ros:jazzy-ros-core-noble'
compiler: 'clang++-18'
steps:
- name: Check out code
uses: actions/checkout@v2
with:
lfs: false
- name: Build and Test
run: |
CI_TEST_ZIVID_VERSION=${{ env.NEWEST_ZIVID_VERSION }} \
CI_TEST_OS=${{ matrix.os }} \
CI_TEST_COMPILER=${{ matrix.compiler }} \
./continuous-integration/run_build_and_test_in_docker.sh
- name: Notify Teams
if: ${{ failure() && github.ref == 'refs/heads/master' }}
env:
CI_FAILURE_TEAMS_HOOK: ${{ secrets.CI_FAILURE_TEAMS_HOOK }}
run: python continuous-integration/notify_teams.py --status ${{ job.status }}
build-driver-and-run-tests-for-older-sdk:
name: Build driver and run tests for older Zivid SDK
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
zivid-version: ['2.9.0+4dbba385-1', '2.10.0+8ce7dae3-2', '2.10.1+50b274e8-7', '2.11.0+95829246-1', '2.11.1+de9b5dae-1', '2.12.0+6afd4961-1', '2.13.0+99a4ce9e-1']
ros-distro: ['ros:humble-ros-base-jammy']
steps:
- name: Check out code
uses: actions/checkout@v2
with:
lfs: false
- name: Build and Test
run: |
CI_TEST_ZIVID_VERSION=${{ matrix.zivid-version }} \
CI_TEST_OS=${{ matrix.ros-distro }} \
CI_TEST_COMPILER="g++" \
CI_TEST_DOWNLOAD_TELICAM=${{ (matrix.zivid-version == '2.12.0+6afd4961-1' || matrix.zivid-version == '2.13.0+99a4ce9e-1') && '0' || '1' }} \
./continuous-integration/run_build_and_test_in_docker.sh
- name: Notify Teams
if: ${{ failure() && github.ref == 'refs/heads/master' }}
env:
CI_FAILURE_TEAMS_HOOK: ${{ secrets.CI_FAILURE_TEAMS_HOOK }}
run: python continuous-integration/notify_teams.py --status ${{ job.status }}