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

Install colcon and vcs from packages #79

Open
wants to merge 7 commits into
base: noble
Choose a base branch
from
Open
Changes from 3 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
11 changes: 7 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,14 @@ apt -y install \
lcov \
lsb-release \
python3-pip \
python3-vcstool \
wget

# Add colcon repository
mkdir -p /etc/apt/keyrings/
azeey marked this conversation as resolved.
Show resolved Hide resolved
curl -fsSL https://packagecloud.io/dirk-thomas/colcon/gpgkey | gpg --dearmor > /etc/apt/keyrings/colcon-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=signed-by=/etc/apt/keyrings/colcon-archive-keyring.gpg https://packagecloud.io/dirk-thomas/colcon/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/colcon.list > /dev/null

if [ -n "$DOXYGEN_ENABLED" ] && ${DOXYGEN_ENABLED} ; then
apt -y install doxygen
fi
Expand Down Expand Up @@ -80,10 +86,6 @@ pip3 install -r /tmp/gzdev/requirements.txt --break-system-packages
apt-get update 2>&1
echo ::endgroup::

echo ::group::Install tools: pip
pip3 install -U pip vcstool colcon-common-extensions --break-system-packages
echo ::endgroup::

if [ -f "$SOURCE_DEPENDENCIES" ] || [ -f "$SOURCE_DEPENDENCIES_VERSIONED" ] ; then
echo ::group::Fetch source dependencies
mkdir -p deps/src
Expand All @@ -98,6 +100,7 @@ fi

echo ::group::Install dependencies from binaries
apt -y install \
python3-colcon-common-extensions
$OLD_APT_DEPENDENCIES \
$(sort -u $(find . -iname 'packages-'$SYSTEM_VERSION'.apt' -o -iname 'packages.apt') | tr '\n' ' ')
echo ::endgroup::
Expand Down