-
Notifications
You must be signed in to change notification settings - Fork 5
69 lines (61 loc) · 1.54 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
66
67
68
69
name: Build
on:
workflow_dispatch:
schedule:
- cron: '0 9 * * *'
push:
branches:
- main
paths-ignore:
- '**/.clang-format'
- '**/.gitignore'
- '**/LICENSE'
- '**/*.md'
- '**/*.drawio'
pull_request:
paths-ignore:
- '**/.clang-format'
- '**/.gitignore'
- '**/LICENSE'
- '**/*.md'
- '**/*.drawio'
jobs:
build:
runs-on: ubuntu-latest
container: osrf/ros:humble-desktop-full
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Update and install apt dependencies
run: |
sudo apt update -y
sudo apt install -y rsync
shell: bash
- name: Cache IKE_NAV build
uses: actions/cache@v2
with:
path: |
~/ros2_ws/build
~/ros2_ws/install
~/ros2_ws/log
~/ros2_ws/src
key: ${{ runner.os }}-ike_nav-${{ hashFiles('**/package.xml', '**/CMakeLists.txt') }}
restore-keys: |
${{ runner.os }}-ike_nav-
- name: Sync repository
run: |
[ ! -d "~/ros2_ws/src/ike_nav" ] && mkdir -p ~/ros2_ws/src/ike_nav
rsync -auv --delete . ~/ros2_ws/src/ike_nav
shell: bash
- name: Resolve ROS 2 package dependencies
run: |
cd ~/ros2_ws
rosdep update
rosdep install -i -y --from-path src --rosdistro $ROS_DISTRO
shell: bash
- name: Build IKE_NAV
run: |
source /opt/ros/$ROS_DISTRO/setup.sh
cd ~/ros2_ws
colcon build --symlink-install
shell: bash