Skip to content

Commit 4b86b25

Browse files
committed
Increase verbosity of mavros build, add mavros github action job.
1 parent b0465ff commit 4b86b25

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

.docker/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ USER $USERNAME
7474

7575
# Build Mavros workspace
7676
RUN . "/opt/ros/${ROS_DISTRO}/setup.sh" \
77-
&& colcon build \
77+
&& colcon build --event-handlers console_cohesion+ --cmake-args -DCMAKE_VERBOSE_MAKEFILE=ON \
7878
&& rm -rf $MAVROS_WORKSPACE/build
7979

8080
# == "Standard" Blue Docker image proceeds from here

.github/workflows/docker.yaml

+41
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,47 @@ env:
1818
PUSH: ${{ (github.event_name != 'pull_request') && (github.repository == 'Robotic-Decision-Making-Lab/blue') }}
1919

2020
jobs:
21+
mavros:
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
ROS_DISTRO: [rolling]
26+
runs-on: ubuntu-latest
27+
permissions:
28+
packages: write
29+
contents: read
30+
steps:
31+
- name: Checkout repository
32+
uses: actions/checkout@v4
33+
34+
- name: Log into registry
35+
if: env.PUSH == 'true'
36+
uses: docker/[email protected]
37+
with:
38+
registry: ghcr.io
39+
username: ${{ github.actor }}
40+
password: ${{ secrets.GITHUB_TOKEN }}
41+
42+
- name: Extract Docker metadata
43+
if: env.PUSH == 'true'
44+
id: meta
45+
uses: docker/[email protected]
46+
with:
47+
images: ghcr.io/${{ github.repository }}
48+
tags: |
49+
type=raw,value=${{ matrix.ROS_DISTRO }}-${{ github.job }}
50+
51+
- name: Build and push Docker image
52+
uses: docker/[email protected]
53+
with:
54+
context: .
55+
file: .docker/Dockerfile
56+
build-args: ROS_DISTRO=${{ matrix.ROS_DISTRO }}
57+
target: ${{ github.job }}
58+
tags: ${{ steps.meta.outputs.tags }}
59+
labels: ${{ steps.meta.outputs.labels }}
60+
push: ${{ env.PUSH }}
61+
2162
ci:
2263
strategy:
2364
fail-fast: false

0 commit comments

Comments
 (0)