Skip to content

Commit

Permalink
[Spinal][GA] include ros package build process into repeated build pr…
Browse files Browse the repository at this point in the history
…ocess.
  • Loading branch information
sugihara-16 committed Dec 31, 2024
1 parent 997309b commit 235cb92
Showing 1 changed file with 30 additions and 10 deletions.
40 changes: 30 additions & 10 deletions .github/workflows/spinal_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,35 @@ jobs:
cd ~/catkin_ws
rosdep install -y -r --from-paths src --ignore-src --rosdistro noetic
- name: Build Spinal as ROS Package # Build Spinal to generate ROS libraries
shell: bash
run: |
source /opt/ros/noetic/setup.bash
cd ~/catkin_ws
catkin config --cmake-args -Dcatkin_DIR=/opt/ros/noetic/share/catkin/cmake
catkin build spinal
source devel/setup.bash
# - name: Build Spinal as ROS Package # Build Spinal to generate ROS libraries
# shell: bash
# run: |
# source /opt/ros/noetic/setup.bash
# cd ~/catkin_ws
# catkin config --cmake-args -Dcatkin_DIR=/opt/ros/noetic/share/catkin/cmake
# catkin build spinal
# source devel/setup.bash

- name: Build Spinal H7 as STM32CubeIDE project # Build Spinal H7 firmware with STM32CubeIDE
shell: bash
run: |
# set default result to avoid build interruption
set +e
for i in {1..5}; do
echo "=== Attempt #$i for H7 Build ==="
echo "=== Attempt #$i for H7 Build ==="
#build ros packages related to spinla firmware
source /opt/ros/noetic/setup.bash
cd ~/catkin_ws
catkin config --cmake-args -Dcatkin_DIR=/opt/ros/noetic/share/catkin/cmake
catkin build spinal
source devel/setup.bash
#build ros packages related to spinla firmware
source /opt/ros/noetic/setup.bash
cd ~/catkin_ws
catkin config --cmake-args -Dcatkin_DIR=/opt/ros/noetic/share/catkin/cmake
catkin build spinal
source devel/setup.bash
/opt/st/stm32cubeide_1.8.0/stm32cubeide -nosplash \
-application org.eclipse.cdt.managedbuilder.core.headlessbuild \
-data ~/STM32CubeIDE/workspace_1.8.0/ \
Expand Down Expand Up @@ -72,7 +85,14 @@ jobs:
run: |
set +e
for i in {1..5}; do
echo "=== Attempt #$i for F7 Build ==="
echo "=== Attempt #$i for F7 Build ==="
#build ros packages related to spinla firmware
source /opt/ros/noetic/setup.bash
cd ~/catkin_ws
catkin config --cmake-args -Dcatkin_DIR=/opt/ros/noetic/share/catkin/cmake
catkin build spinal
source devel/setup.bash
/opt/st/stm32cubeide_1.8.0/stm32cubeide -nosplash \
-application org.eclipse.cdt.managedbuilder.core.headlessbuild \
-data ~/STM32CubeIDE/workspace_1.8.0/ \
Expand Down

0 comments on commit 235cb92

Please sign in to comment.