updated readme and ci

This commit is contained in:
Ruixiang Du
2020-10-23 14:36:40 +08:00
parent 2c188ba8b3
commit 0a6b4facff
3 changed files with 12 additions and 7 deletions

View File

@@ -21,11 +21,13 @@ 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 && cp -r $GITHUB_WORKSPACE .
- name: Update git submodule
run: cd /catkin_ws/src/$GITHUB_WORKSPACE && git submodule update --init --recursive
- name: Run catkin_make
run: cd /catkin_ws && /bin/bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash; catkin_make"

View File

@@ -13,10 +13,12 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get install -y build-essential cmake libasio-dev
# - name: Install dependencies
# run: sudo apt-get install -y build-essential cmake libasio-dev
- name: Update git submodule
run: git submodule update --init --recursive
- name: Build and pack
run: pwd && ls && mkdir build && cd build && cmake -DBUILD_TESTS=ON .. && cmake --build . && cpack
run: mkdir build && cd build && cmake -DBUILD_TESTS=ON .. && cmake --build . && cpack
- name: Run tests
run: ./build/bin/gtest_all