CI : Pull in external repos #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 1000 | |
# options: --user root | |
steps: | |
- name: Use Docker in rootless mode. | |
uses: ScribeMD/[email protected] | |
# 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 |