Skip to content

Commit

Permalink
Add Ubuntu 24 (Noble) / ROS2 Jazzy support
Browse files Browse the repository at this point in the history
  • Loading branch information
asherikov committed Dec 22, 2024
1 parent 7c7c82f commit 4f06088
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
branches:
- '**'
tags:
- 'NEVER'
- 'NEVER'
pull_request:
types: [opened, reopened]

Expand Down Expand Up @@ -37,6 +37,13 @@ jobs:
- uses: actions/checkout@v4
- run: make -f ccws/tests/test_main_ros2.mk ROS_DISTRO=humble

noble_ros2:
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
- run: make -f ccws/tests/test_main_ros2.mk ROS_DISTRO=jazzy

jammy_ros2_src:
runs-on: ubuntu-22.04

Expand Down
3 changes: 3 additions & 0 deletions ccws/make/new.mk
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ new_focal:
new_jammy:
cp -R ${CCWS_DIR}/examples/pkg_ament "${WORKSPACE_SRC}/${PKG}"

new_noble: new_jammy
#

4 changes: 4 additions & 0 deletions ccws/profiles/build/common/setup.bash
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ then
ROS_DISTRO=noetic;;
jammy)
ROS_DISTRO=humble;;
noble)
ROS_DISTRO=jazzy;;
esac
fi
fi
Expand Down Expand Up @@ -168,6 +170,8 @@ case "${OS_DISTRO_HOST}" in
CCWS_LLVM_VERSION=12;;
jammy)
CCWS_LLVM_VERSION=15;;
noble)
CCWS_LLVM_VERSION=19;;
esac
export CCWS_LLVM_VERSION

Expand Down
1 change: 1 addition & 0 deletions ccws/profiles/build/deb/lintian_noble.supp
4 changes: 2 additions & 2 deletions ccws/profiles/build/deb/targets.mk
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ private_dpkg_deb_focal: private_dpkg_deb_bionic
private_dpkg_deb_jammy:
dpkg-deb -Zzstd -z9 --root-owner-group --build "${CCWS_INSTALL_DIR_BUILD_ROOT}" "${CCWS_ARTIFACTS_DIR}/${CCWS_PKG_FULL_NAME}.deb"

private_dpkg_deb_noble: private_dpkg_deb_jammy
# TODO: --threads-max= (since 1.21.9)
private_dpkg_deb_noble:
dpkg-deb -Zzstd -z9 --root-owner-group --threads-max=${JOBS} --build "${CCWS_INSTALL_DIR_BUILD_ROOT}" "${CCWS_ARTIFACTS_DIR}/${CCWS_PKG_FULL_NAME}.deb"


private_deb_version_hash: assert_PKG_arg_must_be_specified
Expand Down
4 changes: 4 additions & 0 deletions ccws/profiles/build/static_checks/targets.mk
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ bp_static_checks_install_build_focal:
bp_static_checks_install_build_jammy: install_python3
${PIP3_INSTALL} catkin-lint

#ubuntu24
bp_static_checks_install_build_noble: bp_static_checks_install_build_jammy
# passthrough

bp_static_checks_install_build_python: install_python3
${PIP3_INSTALL} pylint
${PIP3_INSTALL} flake8
Expand Down
1 change: 1 addition & 0 deletions ccws/tests/test_main_ros2.mk
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ test:
rm -Rf "${WORKSPACE_SRC}/.ccws"
# ---
# static checks
apt purge flake8 # broken?
${MAKE} bp_install_build BUILD_PROFILE=static_checks
${MAKE} BUILD_PROFILE=static_checks

Expand Down

0 comments on commit 4f06088

Please sign in to comment.