Skip to content

Commit

Permalink
Updated github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Icyadam14 committed Oct 9, 2024
1 parent 6bc4ed8 commit b0fcca5
Showing 1 changed file with 6 additions and 32 deletions.
38 changes: 6 additions & 32 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,38 +17,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

# Set up ROS 2
- name: Set up ROS 2
run: |
locale # Set the locale
sudo apt update && sudo apt install locales
sudo locale-gen en_US en_US.UTF-8
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
export LANG=en_US.UTF-8
locale # verify settings
# Dummy step to test the workflow
- name: Print a message
run: echo "Hello, world!"

# Ensure the Ubuntu Universe repository is enabled
sudo apt install software-properties-common
sudo add-apt-repository universe
# Add the ROS 2 GPG key with apt
sudo apt update && sudo apt install curl -y
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
# Then add the repository to the sources list
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
# Install ROS 2 Jazzy
sudo apt update
sudo apt upgrade -y
sudo apt install ros-foxy-desktop
# Source the ROS 2 setup script
source /opt/ros/jazzy/setup.bash
# Build the workspace
- name: Build workspace
run: |
colcon build
# One more dummy step to test the workflow
- name: Print another message
run: echo "The workflow is working!"

# Run tests (to be implemented)

0 comments on commit b0fcca5

Please sign in to comment.