Update version #326
Workflow file for this run
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
--- | |
name: Industrial CI | |
on: | |
workflow_call: | |
workflow_dispatch: | |
push: | |
jobs: | |
pre-commit: | |
name: pre-commit | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
- uses: pre-commit/action@v3.0.1 | |
ros_industrial_ci: | |
name: ROS Industrial CI | |
needs: | |
- pre-commit | |
strategy: | |
fail-fast: false | |
matrix: | |
ROS_DISTRO: [humble] | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup ROS2 Workspace and Clone Repositories | |
run: | | |
mkdir -p src | |
find . -maxdepth 1 -not -name src -not -name . -exec mv {} src/ \; | |
python3 -m pip install -U vcstool | |
vcs import src < src/rosbot_xl/rosbot_xl_hardware.repos | |
vcs import src < src/rosbot_xl/rosbot_xl_simulation.repos | |
cp -r src/ros2_controllers/diff_drive_controller src/ | |
cp -r src/ros2_controllers/imu_sensor_broadcaster src/ | |
rm -rf src/ros2_controllers | |
# Package micro_ros_msgs does not have industrial ci and tests does not pass. | |
# For more information see https://github.com/micro-ROS/micro_ros_msgs/issues/7 | |
sed '/if(BUILD_TESTING)/,/endif()/d' src/micro_ros_msgs/CMakeLists.txt -i | |
- name: Leave only ROSbot tests | |
shell: bash | |
run: | | |
sed '/if(BUILD_TESTING)/,/endif()/d' src/diff_drive_controller/CMakeLists.txt -i | |
sed '/if(BUILD_TESTING)/,/endif()/d' src/imu_sensor_broadcaster/CMakeLists.txt -i | |
sed '/if(BUILD_TESTING)/,/endif()/d' src/micro_ros_msgs/CMakeLists.txt -i | |
- uses: ros-industrial/industrial_ci@master | |
env: | |
ROS_DISTRO: ${{matrix.ROS_DISTRO}} | |
HUSARION_ROS_BUILD: simulation |