Skip to content

Commit

Permalink
Merge pull request #143 from ros-realtime/update-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
flynneva authored Sep 10, 2023
2 parents 5ba0c7e + e368c0f commit 1ee570c
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 41 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,16 @@ jobs:
fail-fast: false
matrix:
ros_distribution:
- foxy
- galactic
- humble
- iron
- rolling
include:
# Foxy Fitzroy (June 2020 - May 2023)
- ros_distribution: foxy
docker_image: rostooling/setup-ros-docker:ubuntu-focal-ros-foxy-ros-base-latest
# Galactic Geochelone (May 2021 - November 2022)
- ros_distribution: galactic
docker_image: rostooling/setup-ros-docker:ubuntu-focal-ros-galactic-ros-base-latest
# Humble Hawksbill (May 2022 - May 2027)
- ros_distribution: humble
docker_image: rostooling/setup-ros-docker:ubuntu-jammy-ros-humble-ros-base-latest
# Iron Irwini (May 2023 - November 2024)
- ros_distribution: iron
docker_image: rostooling/setup-ros-docker:ubuntu-jammy-ros-iron-ros-base-latest
# Rolling Ridley (June 2020 - Present)
- ros_distribution: rolling
docker_image: rostooling/setup-ros-docker:ubuntu-jammy-ros-rolling-ros-base-latest
Expand All @@ -56,7 +52,7 @@ jobs:
with:
path: ${{ env.CLONE_PATH }}
- name: Build and test
uses: ros-tooling/action-ros-ci@v0.2
uses: ros-tooling/action-ros-ci@v0.3
with:
package-name: autoware_reference_system reference_system reference_interfaces
target-ros2-distro: ${{ matrix.ros_distribution }}
Expand Down
6 changes: 6 additions & 0 deletions autoware_reference_system/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
Changelog for package autoware_reference_system
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

v1.1.0
------
* Add Iron ROS 2 distribution
* Remove EoL distributions Foxy and Galactic
* Remove legacy hack for rosidl_geneartor_py

v1.0.0
-----------
* Add first changelog
Expand Down
2 changes: 1 addition & 1 deletion autoware_reference_system/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>autoware_reference_system</name>
<version>1.0.0</version>
<version>1.1.0</version>
<description>Autoware Reference System for the ROScon workshop</description>
<maintainer email="[email protected]">Evan Flynn</maintainer>
<license>Apache License 2.0</license>
Expand Down
6 changes: 6 additions & 0 deletions reference_interfaces/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
Changelog for package reference_interfaces
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

v1.1.0
------
* Add Iron ROS 2 distribution
* Remove EoL distributions Foxy and Galactic
* Remove legacy hack for rosidl_geneartor_py

v1.0.0
-----------
* Add first changelog
Expand Down
29 changes: 0 additions & 29 deletions reference_interfaces/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,32 +32,3 @@ rosidl_generate_interfaces(${PROJECT_NAME}
)

ament_auto_package()

# remove the below lines if fix to #143 is backported to older ROS distros
# fix rosidl_generator_py bug #143
# https://github.com/ros2/rosidl_python/issues/143
set(GENERATED_FILE "${CMAKE_CURRENT_BINARY_DIR}/rosidl_generator_py/${PROJECT_NAME}/msg/_transmission_stats.py")

set(DISTROS_WITH_FIX
"humble")
list(FIND DISTROS_WITH_FIX $ENV{ROS_DISTRO} DISTRO_ALREADY_FIXED)

if (${DISTRO_ALREADY_FIXED} MATCHES -1)
message(STATUS "checking generated file: ${GENERATED_FILE}")

set(DISTROS_WITH_RENAMED_TARGET "rolling")
list(FIND DISTROS_WITH_RENAMED_TARGET $ENV{ROS_DISTRO} TARGET_RENAMED)

if (${TARGET_RENAMED} MATCHES -1)
set(TARGET_NAME ${PROJECT_NAME}__python)
else()
set(TARGET_NAME ${PROJECT_NAME}__rosidl_generator_py)
endif()

add_custom_command(
TARGET ${TARGET_NAME}
POST_BUILD
COMMAND sed -i "s/all(val >= 0 and val) < 256/all(ord(val) >= 0 and ord(val) < 256/" ${GENERATED_FILE}
COMMENT "Check generated IDL files for extra parenthesis..."
VERBATIM)
endif()
2 changes: 1 addition & 1 deletion reference_interfaces/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>reference_interfaces</name>
<version>1.0.0</version>
<version>1.1.0</version>
<description>Reference system for the ROScon workshop</description>
<maintainer email="[email protected]">Christian Eltzschig</maintainer>
<license>Apache License 2.0</license>
Expand Down
6 changes: 6 additions & 0 deletions reference_system/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
Changelog for package reference_system
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

v1.1.0
------
* Add Iron ROS 2 distribution
* Remove EoL distributions Foxy and Galactic
* Remove legacy hack for rosidl_geneartor_py

v1.0.0
-----------
* Add first changelog
Expand Down
2 changes: 1 addition & 1 deletion reference_system/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>reference_system</name>
<version>1.0.0</version>
<version>1.1.0</version>
<description>Reference system for the ROScon workshop</description>
<maintainer email="[email protected]">Evan Flynn</maintainer>
<license>Apache License 2.0</license>
Expand Down

0 comments on commit 1ee570c

Please sign in to comment.