Skip to content

Commit

Permalink
Include testing packages on CI (#223)
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
  • Loading branch information
ahcorde authored Jan 24, 2024
1 parent ef7deef commit 42a34da
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/ci-iron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,31 @@ jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- docker-image: "ubuntu:22.04"
gz-version: "fortress"
ros-distro: "iron"
ros-repo-packages: ""
- docker-image: "ubuntu:22.04"
gz-version: "garden"
ros-distro: "iron"
ros-repo-packages: ""
- docker-image: "ubuntu:22.04"
gz-version: "fortress"
ros-distro: "iron"
ros-repo-packages: "-testing"
- docker-image: "ubuntu:22.04"
gz-version: "garden"
ros-distro: "iron"
ros-repo-packages: "-testing"

env:
DOCKER_IMAGE: ${{ matrix.docker-image }}
GZ_VERSION: ${{ matrix.gz-version }}
ROS_DISTRO: ${{ matrix.ros-distro }}
ROS_REPO_PACKAGES: ${{ matrix.ros-repo-packages }}
container:
image: ${{ matrix.docker-image }}
steps:
Expand All @@ -40,7 +53,7 @@ jobs:
fi
cp -r gz_ros2_control /home/ros2_ws/src/
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 $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | tee /etc/apt/sources.list.d/ros2.list > /dev/null
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2$ROS_REPO_PACKAGES/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | tee /etc/apt/sources.list.d/ros2.list > /dev/null
wget https://packages.osrfoundation.org/gazebo.gpg -O /usr/share/keyrings/pkgs-osrf-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/pkgs-osrf-archive-keyring.gpg] http://packages.osrfoundation.org/gazebo/ubuntu-stable $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/gazebo-stable.list > /dev/null
if [ "$GZ_VERSION" == "garden" ]; then
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/ci-rolling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,31 @@ jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- docker-image: "ubuntu:22.04"
gz-version: "fortress"
ros-distro: "rolling"
ros-repo-packages: ""
- docker-image: "ubuntu:22.04"
gz-version: "garden"
ros-distro: "rolling"
ros-repo-packages: ""
- docker-image: "ubuntu:22.04"
gz-version: "fortress"
ros-distro: "rolling"
ros-repo-packages: "-testing"
- docker-image: "ubuntu:22.04"
gz-version: "garden"
ros-distro: "rolling"
ros-repo-packages: "-testing"

env:
DOCKER_IMAGE: ${{ matrix.docker-image }}
GZ_VERSION: ${{ matrix.gz-version }}
ROS_DISTRO: ${{ matrix.ros-distro }}
ROS_REPO_PACKAGES: ${{ matrix.ros-repo-packages }}
container:
image: ${{ matrix.docker-image }}
steps:
Expand All @@ -40,7 +53,7 @@ jobs:
fi
cp -r gz_ros2_control /home/ros2_ws/src/
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 $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | tee /etc/apt/sources.list.d/ros2.list > /dev/null
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2$ROS_REPO_PACKAGES/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | tee /etc/apt/sources.list.d/ros2.list > /dev/null
wget https://packages.osrfoundation.org/gazebo.gpg -O /usr/share/keyrings/pkgs-osrf-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/pkgs-osrf-archive-keyring.gpg] http://packages.osrfoundation.org/gazebo/ubuntu-stable $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/gazebo-stable.list > /dev/null
if [ "$GZ_VERSION" == "garden" ]; then
Expand Down

0 comments on commit 42a34da

Please sign in to comment.