-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (37 loc) · 891 Bytes
/
ci.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
name: CI workflow
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
with:
path: src/xcub-moveit2
- name: Build Docker Image
uses: docker/build-push-action@v2
with:
tags: xcub-moveit2:latest
file: Dockerfile
push: false
- name: Build ros2 packages
uses: addnab/docker-run-action@v3
with:
image: xcub-moveit2:latest
options: -v ${{github.workspace}}/:/ros2_ws/
run: |
cd ros2_ws
. /opt/ros/humble/setup.sh
if colcon build; then
. install/setup.sh
else
echo "Compilation failed"
exit 1
fi