Skip to content

Commit

Permalink
added ci/rebuilding improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
john-chrosniak committed Dec 23, 2024
1 parent f4572f3 commit 93d825c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/Ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ jobs:
# Install the multiple object tracking deps
run: sudo bash /opt/carma/src/multiple_object_tracking/scripts/install_dependencies.sh

- name: Compile list of packages
# Get all packages in the respository
run: |
PACKAGES=$(find ./src/carma-platform -maxdepth 2 -type f -name package.xml | grep -v "template_package" | sed 's/.*\/src\/carma-platform\///' | cut -d/ -f1 | tr '\n' ' ' | sed 's/ $//')
echo "PACKAGES=$PACKAGES" >> $GITHUB_ENV
- name: Build ROS2
run: |
source "$INIT_ENV"
Expand Down
6 changes: 4 additions & 2 deletions docker/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ set -e

cd ~/carma_ws

echo "Installing multiple object tracking dependencies"
sudo ./src/multiple_object_tracking/scripts/install_dependencies.sh
if [[ -z "$PACKAGES" ]]; then
echo "Installing multiple object tracking dependencies"
sudo ./src/multiple_object_tracking/scripts/install_dependencies.sh
fi

sudo mkdir -p /opt/carma # Create install directory
sudo chown carma /opt/carma # Set owner to expose permissions for build
Expand Down

0 comments on commit 93d825c

Please sign in to comment.