forked from Livox-SDK/livox_ros_driver2
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (52 loc) · 1.69 KB
/
Copy pathcopilot-setup-steps.yml
File metadata and controls
62 lines (52 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Copilot Setup Steps
on:
workflow_dispatch:
push:
branches:
- master
paths:
- .github/workflows/copilot-setup-steps.yml
pull_request:
paths:
- .github/workflows/copilot-setup-steps.yml
jobs:
copilot-setup-steps:
runs-on: ubuntu-22.04
permissions:
contents: read
steps:
- name: setup workspace
run: |
mkdir -p ${GITHUB_WORKSPACE}/src
- uses: actions/checkout@v6
with:
path: src/livox_ros_driver2
- name: setup ROS environment
uses: ros-tooling/setup-ros@v0.7
- name: install workspace dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake ros-humble-ros-base
source /opt/ros/humble/setup.bash
rosdep update --rosdistro humble
rosdep install --from-paths ${GITHUB_WORKSPACE}/src --ignore-src -r -y
- name: install Livox SDK2
run: |
REPO_DIR="/tmp/livox_sdk2_repo"
mkdir -p "$REPO_DIR"
git clone --branch v1.2.5 --depth 1 https://github.com/Livox-SDK/Livox-SDK2.git "$REPO_DIR/Livox-SDK2"
cd "$REPO_DIR/Livox-SDK2"
mkdir -p build && cd build
cmake ..
make -j$(nproc)
make install
ldconfig
rm -rf "$REPO_DIR"
- name: build workspace
run: |
cd ${GITHUB_WORKSPACE}
source /opt/ros/humble/setup.bash
# Build message/interface packages first so downstream C++ packages
# (sentor_guard) can find them via CMAKE_PREFIX_PATH when they build.
colcon build --symlink-install --continue-on-error
source install/setup.bash