updated ci, updated hunter set brake mode impl

This commit is contained in:
Ruixiang Du
2021-07-29 18:25:22 +08:00
parent 51820bbcb4
commit 5c878914fa
8 changed files with 39 additions and 33 deletions

View File

@@ -6,9 +6,9 @@ name: ROS
# events but only for the master branch
on:
push:
branches: [ master, v2.x ]
branches: [ next ]
pull_request:
branches: [ master, v2.x ]
branches: [ next ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
@@ -21,11 +21,11 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# - name: Install dependencies
# run: sudo apt-get update && sudo apt-get install -y libasio-dev
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libasio-dev
- 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"
- name: Copy code to catkin workspace
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
run: cd /catkin_ws/src && git clone -b next https://github.com/westonrobot/ugv_sdk.git
- name: Run catkin_make
run: cd /catkin_ws && /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash; catkin_make"

View File

@@ -2,9 +2,9 @@ name: Cpp
on:
push:
branches: [ master, v2.x ]
branches: [ next ]
pull_request:
branches: [ master, v2.x ]
branches: [ next ]
jobs:
build:
@@ -13,11 +13,7 @@ jobs:
steps:
- uses: actions/checkout@v2
# - name: Install dependencies
# run: sudo apt-get install -y build-essential cmake libasio-dev
- name: Build and install dependent package
run: git clone https://github.com/westonrobot/async_port.git && cd async_port && mkdir build && cd build && cmake .. && make && sudo make install
- name: Update git submodule
run: git submodule update --init --recursive
- name: Install dependencies
run: sudo apt-get install -y build-essential cmake libasio-dev
- name: Build and pack
run: mkdir build && cd build && cmake -DBUILD_TESTS=ON .. && cmake --build . && cpack