Skip to content

Commit

Permalink
Add humble 3.17 builder in CI (#164)
Browse files Browse the repository at this point in the history
* Add job for humble-3.17
* Allow letter in grep regex
* Test with ROS 2 package
  • Loading branch information
f-fl0 authored May 30, 2023
1 parent c459901 commit 1f9df9f
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ jobs:
strategy:
matrix:
env:
- ALPINE_VERSION=3.14 ROS_DISTRO=noetic
- ALPINE_VERSION=3.17 ROS_DISTRO=noetic
- ALPINE_VERSION=3.14 ROS_DISTRO=noetic ROS_DISTRIBUTION_TYPE=ros1
- ALPINE_VERSION=3.17 ROS_DISTRO=noetic ROS_DISTRIBUTION_TYPE=ros1
- ALPINE_VERSION=3.17 ROS_DISTRO=humble ROS_DISTRIBUTION_TYPE=ros2
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -33,21 +34,32 @@ jobs:
eval ${{ matrix.env }}
image="ros-abuild:${ALPINE_VERSION}-${ROS_DISTRO}"
git clone --depth=1 -b ${ROS_DISTRO}-devel https://github.com/ros/rospack /tmp/rospack
if [[ ${ROS_DISTRIBUTION_TYPE} == "ros1" ]]; then
pkg_name="rospack"
git clone --depth=1 -b ${ROS_DISTRO}-devel https://github.com/ros/${pkg_name} /tmp/${pkg_name}
else
git clone --depth=1 -b ${ROS_DISTRO} https://github.com/ament/ament_index/ /tmp/ament_index
pkg_name="ament_index_cpp"
# keep only one package for testing
mv /tmp/ament_index/${pkg_name} /tmp/${pkg_name}
rm -rf /tmp/ament_index
fi
mkdir -p /tmp/apks
chmod a+w /tmp/apks
docker run --rm \
-v /tmp/rospack:/src/rospack:ro \
-v /tmp/${pkg_name}:/src/${pkg_name}:ro \
-v /tmp/apks:/packages \
${image}
pkg_name=${pkg_name//_/-}
ls -l /tmp/apks/*/*
echo "Checking -dbg subpackage"
ls -l /tmp/apks/*/* | grep -e "ros-${ROS_DISTRO}-rospack-dbg-[0-9\._git]\+-r0.apk"
ls -l /tmp/apks/*/* | grep -e "ros-${ROS_DISTRO}-${pkg_name}-dbg-[[:alnum:]\._git]\+-r0.apk"
echo "Checking -doc subpackage"
ls -l /tmp/apks/*/* | grep -e "ros-${ROS_DISTRO}-rospack-doc-[0-9\._git]\+-r0.apk"
ls -l /tmp/apks/*/* | grep -e "ros-${ROS_DISTRO}-${pkg_name}-doc-[[:alnum:]\._git]\+-r0.apk"
echo "Checking main package"
ls -l /tmp/apks/*/* | grep -e "ros-${ROS_DISTRO}-rospack-[0-9\._git]\+-r0.apk"
ls -l /tmp/apks/*/* | grep -e "ros-${ROS_DISTRO}-${pkg_name}-[[:alnum:]\._git]\+-r0.apk"
- name: Login to GitHub Container Registry
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
Expand Down

0 comments on commit 1f9df9f

Please sign in to comment.