-
Notifications
You must be signed in to change notification settings - Fork 2
72 lines (66 loc) · 1.75 KB
/
ci.yml
File metadata and controls
72 lines (66 loc) · 1.75 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
name: rmcs-navigation CI
on:
workflow_dispatch:
pull_request:
paths:
- ".github/workflows/ci.yml"
- "CMakeLists.txt"
- "package.xml"
- "cmake/**"
- "config/**"
- "launch/**"
- "maps/**"
- "plugins.xml"
- "src/**"
- "test/**"
push:
branches:
- main
paths:
- ".github/workflows/ci.yml"
- "CMakeLists.txt"
- "package.xml"
- "cmake/**"
- "config/**"
- "launch/**"
- "maps/**"
- "plugins.xml"
- "src/**"
- "test/**"
env:
RMCS_REPO: https://github.com/Alliance-Algorithm/RMCS.git
RMCS_REF: main
jobs:
test:
runs-on: ubuntu-latest
container:
image: qzhhhi/rmcs-develop:latest
options: --user 0
steps:
- name: Checkout rmcs-navigation
uses: actions/checkout@v5
- name: Run Lua tests
shell: bash
run: |
set -euo pipefail
export PATH="/opt/cmake/bin:${PATH}"
cmake -S test -B build/test
ctest --test-dir build/test --output-on-failure
- name: Clone RMCS workspace
shell: bash
run: |
set -euo pipefail
git clone --depth 1 --branch "${RMCS_REF}" "${RMCS_REPO}" /tmp/RMCS
mkdir -p /tmp/RMCS/rmcs_ws/src/skills/rmcs-navigation
tar -C "${GITHUB_WORKSPACE}" --exclude=".git" -cf - . \
| tar -C /tmp/RMCS/rmcs_ws/src/skills/rmcs-navigation -xf -
- name: Build rmcs-navigation with colcon
shell: bash
working-directory: /tmp/RMCS/rmcs_ws
run: |
set -euo pipefail
set +u
source /opt/ros/jazzy/setup.bash
set -u
export PATH="/opt/cmake/bin:${PATH}"
colcon build --packages-up-to rmcs-navigation