forked from zivid/zivid-ros
-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (84 loc) · 3.03 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
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.10.0+8ce7dae3-2'
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:noetic-ros-base-focal \
./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:noetic-ros-base-focal']
compiler: ['g++', 'clang++']
include:
- os: 'ros:noetic-ros-base-focal'
compiler: 'g++-10'
- os: 'ros:noetic-ros-base-focal'
compiler: 'g++-11'
- os: 'ros:noetic-ros-base-focal'
compiler: 'clang++-11'
- os: 'ros:noetic-ros-base-focal'
compiler: 'clang++-12'
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']
ros-distro: ['ros:noetic-ros-base-focal']
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++-7" \
./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 }}