Skip to content

Commit 1cb71b8

Browse files
committed
feat: add installation steps for Livox SDK2 in CI workflows
1 parent 35eea82 commit 1cb71b8

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/copilot-setup-steps.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,19 @@ jobs:
3939
rosdep update --rosdistro humble
4040
rosdep install --from-paths ${GITHUB_WORKSPACE}/src --ignore-src -r -y
4141
42+
- name: install Livox SDK2
43+
run: |
44+
REPO_DIR="/tmp/livox_sdk2_repo"
45+
mkdir -p "$REPO_DIR"
46+
git clone --branch v1.2.5 --depth 1 https://github.com/Livox-SDK/Livox-SDK2.git "$REPO_DIR/Livox-SDK2"
47+
cd "$REPO_DIR/Livox-SDK2"
48+
mkdir -p build && cd build
49+
cmake ..
50+
make -j$(nproc)
51+
make install
52+
ldconfig
53+
rm -rf "$REPO_DIR"
54+
4255
- name: build workspace
4356
run: |
4457
cd ${GITHUB_WORKSPACE}

.github/workflows/ros-ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,18 @@ jobs:
5353
path: src/livox_ros_driver2
5454
- name: setup ROS environment
5555
uses: ros-tooling/setup-ros@v0.7
56+
- name: install Livox SDK2
57+
run: |
58+
REPO_DIR="/tmp/livox_sdk2_repo"
59+
mkdir -p "$REPO_DIR"
60+
git clone --branch v1.2.5 --depth 1 https://github.com/Livox-SDK/Livox-SDK2.git "$REPO_DIR/Livox-SDK2"
61+
cd "$REPO_DIR/Livox-SDK2"
62+
mkdir -p build && cd build
63+
cmake ..
64+
make -j$(nproc)
65+
make install
66+
ldconfig
67+
rm -rf "$REPO_DIR"
5668
- name: build and test ROS 2
5769
if: ${{ matrix.ros_version == 2 }}
5870
uses: ros-tooling/action-ros-ci@v0.3

0 commit comments

Comments
 (0)