Skip to content

Commit 46b11d3

Browse files
committed
feat : Add build CI
1 parent 67a5b3c commit 46b11d3

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

.github/workflows/build-CI.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build-CI
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-20.04
8+
container:
9+
image: ghcr.io/irobot-algorithm/sentry_navigation:latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
15+
- name: Build the workspace
16+
run: |
17+
sudo chmod 777 build.sh
18+
./build.sh
19+
20+
- name: Run tests
21+
run: |
22+
source /opt/ros/noetic/setup.sh
23+
catkin_test_results build

build.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ catkin_make -DCATKIN_WHITELIST_PACKAGES="livox_ros_driver2"
99
source /opt/ros/noetic/setup.bash
1010
catkin_make -DCATKIN_WHITELIST_PACKAGES="sentry_srvs"
1111
catkin_make -DCATKIN_WHITELIST_PACKAGES="sentry_msgs"
12-
catkin_make -j1 -DCATKIN_WHITELIST_PACKAGES="fast_lio"
12+
catkin_make -DCATKIN_WHITELIST_PACKAGES="fast_lio"
13+
catkin_make -DCATKIN_WHITELIST_PACKAGES="faster_lio"
14+
catkin_make -DCATKIN_WHITELIST_PACKAGES="point_lio"
1315
source /opt/ros/noetic/setup.bash
14-
catkin_make -DCATKIN_WHITELIST_PACKAGES=""
1516
catkin_make -DCATKIN_WHITELIST_PACKAGES=""

0 commit comments

Comments
 (0)