forked from open-edge-platform/edge-ai-suites
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrobotics-components-fast-mapping.yaml
More file actions
159 lines (139 loc) · 4.66 KB
/
robotics-components-fast-mapping.yaml
File metadata and controls
159 lines (139 loc) · 4.66 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
# Copyright (C) 2025 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
name: Fast Mapping
on:
workflow_call:
# workaround until unified workflow is implemented
inputs:
component-name:
default: fast-mapping
required: false
type: string
permissions:
contents: read
defaults:
run:
working-directory: robotics-ai-suite/components/fast-mapping
jobs:
lint:
name: '[${{ inputs.component-name }}] Lint'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
sparse-checkout: ./robotics-ai-suite/components/fast-mapping
persist-credentials: false
- name: Lint
shell: bash
run: |
make lint
license-check:
name: '[${{ inputs.component-name }}] License Check'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
sparse-checkout: robotics-ai-suite/components/fast-mapping
persist-credentials: false
- name: Run REUSE
shell: bash
run: |
make license-check
build-test:
needs: [lint, license-check]
name: '[${{ inputs.component-name }}] Build & Test (${{ matrix.ros_distro }})'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ros_distro: [humble, jazzy]
steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
sparse-checkout: robotics-ai-suite/components/fast-mapping
persist-credentials: false
- name: Build [colcon]
shell: bash
run: |
ROS_DISTRO=${{ matrix.ros_distro }} make build
- name: Run Tests
shell: bash
run: |
ROS_DISTRO=${{ matrix.ros_distro }} make test
- name: Upload test results
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: 'test-results-fast-mapping-${{ matrix.ros_distro }}'
if-no-files-found: error
path: |
**/build/fast_mapping/Testing
**/build/fast_mapping/test_results
build-package:
needs: [build-test]
name: '[${{ inputs.component-name }}] Build Package (${{ matrix.ros_distro }})'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ros_distro: [humble, jazzy]
steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
sparse-checkout: robotics-ai-suite/components/fast-mapping
persist-credentials: false
- name: Build package
shell: bash
run: |
ROS_DISTRO=${{ matrix.ros_distro }} make package
- name: Collect build artifacts
shell: bash
run: |
mkdir -p output/fast-mapping
find . -name "*.deb" -not -name "*-build-deps_*" -not -name "*-dbgsym_*" -exec mv {} output/fast-mapping \; 2>/dev/null
if [ "$(ls -1 output/fast-mapping | wc -l)" -gt 0 ]; then
echo "Debian packages collected.";
else
echo "No Debian packages found!";
exit 1;
fi
- name: Upload build artifacts
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: packages-fast-mapping-${{ matrix.ros_distro }}
if-no-files-found: error
path: |
**/output/fast-mapping/*.deb
test-e2e:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.ros_distro }}
cancel-in-progress: true
name: '[${{ inputs.component-name }}] E2E tests (${{ matrix.ros_distro }})'
runs-on: ubuntu-latest
needs: build-package
strategy:
matrix:
ros_distro: [humble, jazzy]
steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
sparse-checkout: robotics-ai-suite/components/fast-mapping
persist-credentials: false
- name: Download debian packages
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
with:
name: packages-fast-mapping-${{ matrix.ros_distro }}
path: ./
- name: Place *.deb in the working folder
shell: bash
run: |
mv output/fast-mapping/*.deb .
- name: Run E2E tests
shell: bash
run: ROS_DISTRO=${{ matrix.ros_distro }} make test-e2e