-
Notifications
You must be signed in to change notification settings - Fork 3
65 lines (55 loc) · 1.35 KB
/
build.yaml
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
name: Setup and build packages
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
USER: github.actor
jobs:
build:
runs-on: ubuntu-latest
container:
image: px4io/px4-dev-ros-noetic:latest
options: --privileged --ulimit core=-1 --security-opt seccomp=unconfined
steps:
- name: Check environment
run: |
export
ulimit -a
- name: Perform rosdep
run: |
. /opt/ros/$ROS_DISTRO/setup.sh
rosdep update
- name: Install build dependencies
run: |
pip install scipy
pip install -U wstool
- name: Create new workspace
run: |
cd ~
mkdir -p sarax_ws/src
- name: Initialise catkin workspace
run: |
cd ~/sarax_ws/
. /opt/ros/$ROS_DISTRO/setup.sh
catkin init
wstool init src
- name: Clone Sarax project
run: |
cd ~/sarax_ws/src
git clone ${{ github.server_url }}/${{ github.repository }}.git
ls -l
- name: Get dependencies using rosdep
run: |
cd ~/sarax_ws/
. /opt/ros/$ROS_DISTRO/setup.sh
rosdep install --from-paths src --ignore-src -r -y --skip-keys="python-scipy"
- name: Build workspace
if: always()
run: |
cd ~/sarax_ws/
. /opt/ros/$ROS_DISTRO/setup.sh
catkin build