mirror of
https://github.com/westonrobot/ugv_sdk
synced 2023-04-08 06:32:14 +08:00
updated readme and ci
This commit is contained in:
6
.github/workflows/ros-ci.yml
vendored
6
.github/workflows/ros-ci.yml
vendored
@@ -21,11 +21,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Install dependencies
|
# - name: Install dependencies
|
||||||
run: sudo apt-get update && sudo apt-get install -y libasio-dev
|
# run: sudo apt-get update && sudo apt-get install -y libasio-dev
|
||||||
- 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 && cp -r $GITHUB_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
|
- 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"
|
||||||
|
|||||||
8
.github/workflows/standalone-ci.yml
vendored
8
.github/workflows/standalone-ci.yml
vendored
@@ -13,10 +13,12 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- 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: Update git submodule
|
||||||
|
run: git submodule update --init --recursive
|
||||||
- name: Build and pack
|
- 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
|
- name: Run tests
|
||||||
run: ./build/bin/gtest_all
|
run: ./build/bin/gtest_all
|
||||||
|
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ $ sudo apt-get install cmake
|
|||||||
|
|
||||||
```
|
```
|
||||||
$ cd <your-catkin-ws>/src
|
$ cd <your-catkin-ws>/src
|
||||||
$ git clone https://github.com/westonrobot/wrp_sdk.git
|
$ git clone --recursive https://github.com/westonrobot/ugv_sdk.git
|
||||||
$ cd ..
|
$ cd ..
|
||||||
$ catkin_make
|
$ catkin_make
|
||||||
```
|
```
|
||||||
@@ -84,7 +84,8 @@ $ sudo apt install libncurses5-dev
|
|||||||
Configure and build
|
Configure and build
|
||||||
|
|
||||||
```
|
```
|
||||||
$ cd wrp_sdk
|
$ git clone --recursive https://github.com/westonrobot/ugv_sdk.git
|
||||||
|
$ cd ugv_sdk
|
||||||
$ mkdir build
|
$ mkdir build
|
||||||
$ cd build
|
$ cd build
|
||||||
$ cmake ..
|
$ cmake ..
|
||||||
|
|||||||
Reference in New Issue
Block a user