From 32127dcbe83db341d29af54fd612f4d88c4299d0 Mon Sep 17 00:00:00 2001 From: Du Ruixiang <50311081+rdu-weston@users.noreply.github.com> Date: Sat, 15 Aug 2020 22:07:35 +0800 Subject: [PATCH] Update ros-ci.yml --- .github/workflows/ros-ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ros-ci.yml b/.github/workflows/ros-ci.yml index 480ab68..427b494 100644 --- a/.github/workflows/ros-ci.yml +++ b/.github/workflows/ros-ci.yml @@ -21,8 +21,10 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - - name: Setup catkin workspace - run: mkdir -p /catkin_ws/src && cd /catkin_ws/src && /bin/bash -c "source /opt/ros/melodic/setup.bash" && catkin_init_workspace + - name: Create catkin workspace folder + run: mkdir -p /catkin_ws/src && cd /catkin_ws/src + - name: Init catkin workspace + run: /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash; catkin_init_workspace" - name: Copy code to catkin workspace run: cp -r $GITHUB_WORKSPACE/wrp_sdk /catkin_ws/src - name: Run catkin_make