Repository navigation
88 lines (85 loc) · 3.27 KB
/
Copy pathROS-commit.yml
File metadata and controls
88 lines (85 loc) · 3.27 KB
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
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 only on long-lived branches; topic branches are
branches: # covered by the pull_request trigger, so CI does not run twice.
- master
- ros1-master
- ros1-sdk-2.14.0
pull_request: # Run on new and updated PR's, including PR's from forks.
schedule: # Scheduled trigger runs on the latest commit on the default branch.
- cron: '0 22 * * *'
workflow_dispatch: # Allow re-running CI manually, without pushing an empty commit.
env:
NEWEST_ZIVID_VERSION: '2.18.0+1b44dbef-1'
jobs:
code-analysis:
name: Analyze code
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v6
with:
lfs: false
- name: Run code_analysis.sh
run: |
CI_TEST_OS=ros:lyrical-ros-core-resolute \
./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:jazzy-ros-core-noble', 'ros:lyrical-ros-core-resolute']
compiler: ['g++', 'clang++']
include:
- os: 'ros:lyrical-ros-core-resolute'
compiler: 'g++-16'
- os: 'ros:lyrical-ros-core-resolute'
compiler: 'clang++-22'
steps:
- name: Check out code
uses: actions/checkout@v6
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.15.0+5fcc365b-1', '2.16.0+46cdaba6-1', '2.17.0+5fc9f05e-1']
ros-distro: ['ros:humble-ros-base-jammy']
steps:
- name: Check out code
uses: actions/checkout@v6
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++" \
./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 }}