Skip to content

Commit ba3d4a8

Browse files
SteveMacenskiMarcoMatteoBassa
authored andcommitted
Adding Jazzy build job on Main PRs to automatically test Jazzy compatiblity long term (Kilted to come shortly) (ros-navigation#5164)
* Adding jazzy testing job Signed-off-by: Steve Macenski <[email protected]> * on PR not push Signed-off-by: Steve Macenski <[email protected]> * move dir Signed-off-by: Steve Macenski <[email protected]> * more Signed-off-by: Steve Macenski <[email protected]> * moar Signed-off-by: Steve Macenski <[email protected]> * moar Signed-off-by: Steve Macenski <[email protected]> * more Signed-off-by: Steve Macenski <[email protected]> * fin Signed-off-by: Steve Macenski <[email protected]> --------- Signed-off-by: Steve Macenski <[email protected]>
1 parent 99fcb9f commit ba3d4a8

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Build Against Released Distributions
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
branches:
7+
- main
8+
9+
jobs:
10+
build-docker:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
ros_distro: [jazzy]
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v3
21+
22+
- name: Set up Docker build context
23+
run: |
24+
mkdir -p /tmp/docker_context/ws/src
25+
cp -r . /tmp/docker_context/ws/src
26+
echo 'FROM osrf/ros:${{ matrix.ros_distro }}-desktop-full
27+
28+
RUN apt-get update && apt-get install -y \
29+
python3-pip \
30+
python3-colcon-common-extensions \
31+
python3-vcstool \
32+
git \
33+
curl \
34+
&& rm -rf /var/lib/apt/lists/*
35+
36+
WORKDIR /root/ws
37+
38+
COPY ws /root/ws
39+
40+
RUN apt-get update && rosdep update && \
41+
rosdep install --from-paths src --ignore-src -r -y \
42+
--skip-keys=slam_toolbox
43+
44+
RUN . /opt/ros/${{ matrix.ros_distro }}/setup.sh && colcon build' > /tmp/docker_context/Dockerfile
45+
46+
47+
- name: Build Docker image
48+
run: |
49+
docker build -t nav2-${{ matrix.ros_distro }}-main-compatibility /tmp/docker_context

0 commit comments

Comments
 (0)