updated github ci

This commit is contained in:
Ruixiang Du
2021-04-08 11:46:52 +08:00
parent 0dc1e35725
commit f04bab6f0b
2 changed files with 4 additions and 1 deletions

View File

@@ -26,6 +26,6 @@ jobs:
- name: Create catkin workspace - name: Create catkin workspace
run: mkdir -p /catkin_ws/src && cd /catkin_ws/src && /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash; catkin_init_workspace" run: mkdir -p /catkin_ws/src && cd /catkin_ws/src && /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash; catkin_init_workspace"
- name: Copy code to catkin workspace - name: Copy code to catkin workspace
run: cd /catkin_ws/src && git clone --recursive https://github.com/westonrobot/ugv_sdk run: cd /catkin_ws/src && git clone https://github.com/westonrobot/async_port.git && git clone -b v2.x https://github.com/westonrobot/ugv_sdk.git
- name: Run catkin_make - name: Run catkin_make
run: cd /catkin_ws && /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash; catkin_make" run: cd /catkin_ws && /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash; catkin_make"

View File

@@ -15,6 +15,9 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
# - name: Install dependencies # - name: Install dependencies
# run: sudo apt-get install -y build-essential cmake libasio-dev # run: sudo apt-get install -y build-essential cmake libasio-dev
- name: Build and install dependent package
run: git clone -b v2.x https://github.com/westonrobot/async_port.git && cd async_port \
mkdir build && cd build && cmake .. && make && sudo make install
- name: Update git submodule - name: Update git submodule
run: git submodule update --init --recursive run: git submodule update --init --recursive
- name: Build and pack - name: Build and pack