Skip to content

Commit

Permalink
refactor: move the content of setup_dependencies.bash to action.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
threeal committed Oct 31, 2023
1 parent 685452f commit 6a82f0a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 21 deletions.
19 changes: 16 additions & 3 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,22 @@ inputs:
runs:
using: composite
steps:
- name: Setup dependencies
run: bash ${{ github.action_path }}/scripts/setup-dependencies.bash ${{ inputs.ros2-distro }}
shell: bash
- shell: bash
run: |
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
- shell: bash
run: |
sudo apt update
sudo apt install -y python3-colcon-common-extensions python3-rosdep
- shell: bash
run: |
sudo rosdep init
rosdep update
rosdep install -y --rosdistro ${{ inputs.ros2-distro }} --from-paths .
- name: Build and test workspace
run: bash ${{ github.action_path }}/scripts/build-and-test.bash ${{ inputs.ros2-distro }}
shell: bash
18 changes: 0 additions & 18 deletions scripts/setup-dependencies.bash

This file was deleted.

0 comments on commit 6a82f0a

Please sign in to comment.