-
Notifications
You must be signed in to change notification settings - Fork 6
69 lines (61 loc) · 2.01 KB
/
build_and_install.yaml
File metadata and controls
69 lines (61 loc) · 2.01 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
63
64
65
66
67
68
69
name: build
on:
push:
branches: [ master, devel, pull_req ]
pull_request:
branches: [ master, devel, pull_req ]
schedule:
- cron: '0 8 * * *'
jobs:
install-and-run:
runs-on: ubuntu-latest
container:
image: osrf/ros:noetic-desktop-full
steps:
- name: Install dependencies (apt)
shell: bash
run: |
apt-get update
apt-get install -y \
git libboost-all-dev libeigen3-dev libyaml-cpp-dev libpoco-dev \
liblog4cxx-dev libgtest-dev python3-vcstool python3-catkin-tools \
python3-rosdep
rosdep init || true
rosdep update
- name: Setup Catkin Workspace
shell: bash
run: |
echo "Setting up ROS environment"
source /opt/ros/noetic/setup.bash
WORKSPACE_DIR="$(pwd)/openmore_ws"
echo "WORKSPACE_DIR=$WORKSPACE_DIR" >> "$GITHUB_ENV"
echo "Setting up Catkin workspace at $WORKSPACE_DIR"
mkdir -p "$WORKSPACE_DIR/src"
cd "$WORKSPACE_DIR"
catkin init
catkin config --extend /opt/ros/noetic
catkin config --install
ls -la
- name: Checkout repository
uses: actions/checkout@v4
with:
path: "${{ env.WORKSPACE_DIR }}/src/OpenMORE"
- name: Download deps with vcstool & rosdep
shell: bash
run: |
cd "${{ env.WORKSPACE_DIR }}/src/OpenMORE"
. update_submodules.sh
cd "${{ env.WORKSPACE_DIR }}/src"
vcs import < OpenMORE/deps.repos
cd "${{ env.WORKSPACE_DIR }}"
if [ ! -f /etc/ros/rosdep/sources.list.d/20-default.list ]; then
rosdep init
fi
rosdep update --rosdistro noetic
rosdep install --from-paths src --ignore-src -r -y
- name: Build & Install replanners_managers_lib in Catkin Workspace
shell: bash
run: |
cd "${{ env.WORKSPACE_DIR }}"
catkin build -cs
source install/setup.bash