Update README.md #8
This file contains hidden or 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: build | |
| on: | |
| push: | |
| branches: [ "humble" ] | |
| pull_request: | |
| branches: [ "humble" ] | |
| workflow_dispatch: | |
| inputs: | |
| example_input: | |
| description: 'An example input' | |
| required: false | |
| default: 'default value' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: osrf/ros:humble-desktop-full | |
| options: --user root # Needed for installing additional dependencies with apt | |
| steps: | |
| - name: Fix ROS 2 apt keys | |
| run: | | |
| rm /etc/apt/sources.list.d/ros2-latest.list && rm /usr/share/keyrings/ros2-latest-archive-keyring.gpg | |
| apt-get update && apt-get install -y ca-certificates curl | |
| export ROS_APT_SOURCE_VERSION=$(curl -s https://api.github.com/repos/ros-infrastructure/ros-apt-source/releases/latest | grep -F "tag_name" | awk -F\" '{print $4}') ; curl -L -s -o /tmp/ros2-apt-source.deb "https://github.com/ros-infrastructure/ros-apt-source/releases/download/${ROS_APT_SOURCE_VERSION}/ros2-apt-source_${ROS_APT_SOURCE_VERSION}.$(. /etc/os-release && echo $VERSION_CODENAME)_all.deb" | |
| apt-get update | |
| apt-get install /tmp/ros2-apt-source.deb | |
| rm -f /tmp/ros2-apt-source.deb | |
| curl -L -s -o /tmp/ros2-apt-source.deb https://github.com/ros-infrastructure/ros-apt-source/releases/download/1.1.0/ros2-apt-source_1.1.0.noble_all.deb | |
| echo "35441f3092fd05773a3c397fab38661bec466584c7a1f1c05366579997cb5fe7 /tmp/ros2-apt-source.deb" | sha256sum --strict --check | |
| apt-get update | |
| apt-get install /tmp/ros2-apt-source.deb | |
| rm -f /tmp/ros2-apt-source.deb | |
| rm -rf /var/lib/apt/lists/* | |
| - name: download dependencies | |
| run: | | |
| mkdir -p ~/ros2_ws/src | |
| cd ~/ros2_ws/src | |
| git clone https://github.com/eurecat/rosx_introspection.git -b master | |
| git clone https://x-access-token:${{ secrets.GH_PAT }}@github.com/Eurecat/behaviortree_eut_plugins.git -b jazzy | |
| git clone https://github.com/BehaviorTree/BehaviorTree.CPP.git -b 4.6.2 | |
| apt-get update && sudo apt-get upgrade -y | |
| DEBIAN_FRONTEND=noninteractive apt-get install software-properties-common -y | |
| DEBIAN_FRONTEND=noninteractive apt-get install ros-dev-tools python3-colcon-common-extensions -y | |
| DEBIAN_FRONTEND=noninteractive apt-get install ros-humble-angles ros-humble-tf2 ros-humble-tf2-ros ros-humble-tf2-geometry-msgs -y | |
| apt install rapidjson-dev | |
| apt-get update | |
| apt update && sudo apt install -y curl gnupg2 lsb-release | |
| curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg | |
| echo "deb [signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" | \ | |
| tee /etc/apt/sources.list.d/ros2.list > /dev/null | |
| apt update | |
| apt-get install ros-humble-generate-parameter-library -y | |
| apt-get install libboost-dev libyaml-dev -y | |
| apt-get install terminator -y | |
| DEBIAN_FRONTEND=noninteractive apt-get install libzmq3-dev libsqlite3-dev -y | |
| DEBIAN_FRONTEND=noninteractive apt-get install libncurses5-dev libncursesw5-dev -y | |
| apt-get install qtbase5-dev libqt5svg5-dev libdw-dev -y | |
| - name: setup the ws | |
| shell: bash | |
| run: | | |
| pwd | |
| echo "source /opt/ros/humble/setup.bash" >> ~/.bashrc | |
| source ~/.bashrc | |
| cd ~/ros2_ws | |
| ls | |
| colcon build | |
| source install/setup.bash | |
| ls | |
| pwd | |
| - name: Build the workspace | |
| shell: bash | |
| run: | | |
| cd ~/ros2_ws/src | |
| git clone https://x-access-token:${{ secrets.GH_PAT }}@github.com/Eurecat/behaviortree_ros2.git -b humble | |
| cd ~/ros2_ws | |
| source ~/ros2_ws/install/setup.bash | |
| colcon build |