From 4bfdabd1214dded10c6c0e9bc95e65a4faaacf1b Mon Sep 17 00:00:00 2001 From: robotx_buildfarm Date: Sat, 16 Jan 2021 14:25:13 +0000 Subject: [PATCH 1/2] update dependency.repos --- dependency.repos | 1 + 1 file changed, 1 insertion(+) create mode 100644 dependency.repos diff --git a/dependency.repos b/dependency.repos new file mode 100644 index 0000000..c22e013 --- /dev/null +++ b/dependency.repos @@ -0,0 +1 @@ +repositories: \ No newline at end of file From 1dc87934cb38329e658899f655bd51f88d8bf178 Mon Sep 17 00:00:00 2001 From: robotx_buildfarm Date: Sat, 16 Jan 2021 14:25:13 +0000 Subject: [PATCH 2/2] update .github/workflows/ROS2-Dashing.yaml --- .github/workflows/ROS2-Dashing.yaml | 59 +++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .github/workflows/ROS2-Dashing.yaml diff --git a/.github/workflows/ROS2-Dashing.yaml b/.github/workflows/ROS2-Dashing.yaml new file mode 100644 index 0000000..6019004 --- /dev/null +++ b/.github/workflows/ROS2-Dashing.yaml @@ -0,0 +1,59 @@ + +name: ROS2-dashing + +name: documentat + +on: + schedule: + - cron: 0 0 * * * + push: + workflow_dispatch: + +jobs: + job1: + name: Build + runs-on: ubuntu-18.04 + steps: + - name: ROS2 Install + run: | + # Ref: https://index.ros.org/doc/ros2/Installation/eloquent/Linux-Install-Debians/ + sudo locale-gen en_US en_US.UTF-8 + sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 + export LANG=en_US.UTF-8 + sudo apt update && sudo apt install curl gnupg2 lsb-release + curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add - + sudo sh -c 'echo "deb [arch=amd64,arm64] http://packages.ros.org/ros2/ubuntu `lsb_release -cs` main" > /etc/apt/sources.list.d/ros2-latest.list' + sudo apt update + sudo apt install ros-dashing-desktop + source /opt/ros/dashing/setup.bash + - uses: actions/checkout@v2-beta + - name: Copy repository + run: | + mkdir -p ~/ros2_ws/src/color_names + cp -rf . ~/ros2_ws/src/color_names + - name: Install dependencies + run: | + source /opt/ros/dashing/setup.bash + sudo apt install -y python3-rosdep python3-vcstool python3-sphinx-rtd-theme + sudo rosdep init + rosdep update + cd ~/ros2_ws + vcs import src < src/color_names/dependency.repos + cd ~/ros2_ws/src + rosdep install -r -y --from-paths . --ignore-src + - name: Build packages + run: | + source /opt/ros/dashing/setup.bash + # Install colcon + # Ref: https://index.ros.org/doc/ros2/Tutorials/Colcon-Tutorial/ + sudo apt install python3-colcon-common-extensions + cd ~/ros2_ws + colcon build + source ~/ros2_ws/install/setup.bash + - name: Test packages + run: | + source /opt/ros/dashing/setup.bash + source ~/ros2_ws/install/setup.bash + cd ~/ros2_ws + colcon test + colcon test-result --verbose \ No newline at end of file