-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.49 KB
/
build.yaml
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
on:
push:
paths-ignore:
- ros2_ws/space.dockerfile # Changes to dockerfile will trigger dev image rebuild which in turn triggers this workflow
workflow_run:
workflows: ["Build and push dev image"]
types:
- completed
name: Build
jobs:
build-job:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: ./ros2_ws
container:
image: ghcr.io/${{ github.actor }}/spaceros2_rust_dev:latest
options: --user spaceros-user
# options: --user root
steps:
# https://github.com/actions/runner/issues/434
- name: Fix $USER permission
run: sudo usermod -a -G root spaceros-user
- uses: actions/checkout@v4
- name: Pull external repos
run: mkdir src/external && cd src/external && vcs import < ../../external.repos
- name: investigate
run: |
colcon list
echo $PATH
pip list
cd src/external/ros2_rust/rosidl_generator_rs
cat package.xml
- name: Build
run: source /opt/spaceros/install/setup.bash && colcon build --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=1 --packages-up-to bringup --event-handlers console_cohesion+
- name: Run fsm test
run: source /opt/spaceros/install/setup.bash && colcon test-result --delete-yes && colcon test --ctest-args tests --packages-select rover_fsm
- name: Print test results
run: source /opt/spaceros/install/setup.bash && colcon test-result --all --verbose