Skip to content

Commit

Permalink
add installation script
Browse files Browse the repository at this point in the history
  • Loading branch information
hofbi committed Dec 22, 2020
1 parent 1d7843e commit 4493ad1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
ros-version: [melodic, noetic]
steps:
- uses: actions/checkout@v2
- name: Setup
run: ./install_dependencies.sh
- name: Init Workspace
run: |
mkdir -p $GITHUB_WORKSPACE/../catkin_ws/src
Expand Down
14 changes: 14 additions & 0 deletions install_dependencies.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROS_VERSION=$(rosversion -d)
if [ "$ROS_VERSION" = "noetic" ]; then
PYTHON_SUFFIX=3
else
PYTHON_SUFFIX=""
fi

sudo apt-get update
sudo apt-get install --no-install-recommends -y \
python$PYTHON_SUFFIX-osrf-pycommon \
python$PYTHON_SUFFIX-catkin-tools

0 comments on commit 4493ad1

Please sign in to comment.