-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
48 lines (43 loc) · 975 Bytes
/
.gitlab-ci.yml
File metadata and controls
48 lines (43 loc) · 975 Bytes
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
stages:
- prepare
- build
image: ros:humble
variables:
ROS_DISTRO: humble
DEBIAN_FRONTEND: noninteractive
# Job to set up dependencies
prepare:
stage: prepare
script:
- apt-get update
- apt-get install -y
git
build-essential
libglfw3-dev
libx11-dev
xorg-dev
ros-humble-urdf
ros-humble-xacro
ros-humble-rviz2
ros-humble-ros2-control
ros-humble-ros2-controllers
ros-humble-controller-manager
libopencv-dev
ros-humble-pcl-conversions
ros-humble-cv-bridge
libpcl-dev
- rosdep update
# Job to clone and build MuJoCo
build:
stage: build
script:
- mkdir -p /ros2_ws/src
- cp -r $CI_PROJECT_DIR/mujoco_ros2_control /ros2_ws/src/
- cd /ros2_ws
- . /opt/ros/$ROS_DISTRO/setup.sh
- rosdep install --from-paths src --ignore-src --rosdistro $ROS_DISTRO -y
- colcon build
artifacts:
paths:
- /ros2_ws/install
expire_in: 1 week