Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(colcon-build): source /opt/autoware/setup.sh if exists #337

Merged
merged 8 commits into from
Mar 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions colcon-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ inputs:
description: Will be exported as MAKEFLAGS environment variable. e.g. "-j 4"
default: ""
required: false
underlay-workspace:
description: Path to the underlay workspace containing setup.sh
default: ""
required: false

runs:
using: composite
Expand Down Expand Up @@ -75,6 +79,9 @@ runs:
else
rosdep update
fi
if [ -f "${{ inputs.underlay-workspace }}/setup.sh" ]; then
. ${{ inputs.underlay-workspace }}/setup.sh
fi
DEBIAN_FRONTEND=noninteractive rosdep install -yqq --from-paths ${package_paths} --ignore-src --rosdistro ${{ inputs.rosdistro }}
shell: bash

Expand All @@ -87,6 +94,9 @@ runs:
- name: Build
run: |
. /opt/ros/${{ inputs.rosdistro }}/setup.sh
if [ -f "${{ inputs.underlay-workspace }}/setup.sh" ]; then
. ${{ inputs.underlay-workspace }}/setup.sh
fi
# Cannot use unshare inside a Docker container, so we just disable
# DNS lookups instead.
cat /etc/nsswitch.conf
Expand Down
Loading