forked from epfl-lasa/modulo
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 3.2.0 is a minor update to modulo with a new feature that allows the component period parameter to be set through a new parameter called 'rate'. In the future, the period parameter will be deprecated.
- Loading branch information
Showing
22 changed files
with
285 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,70 @@ | ||
name: Build and Push Multi-Arch Images | ||
name: Build and release | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
- main | ||
tags: | ||
- "v*.*.*" | ||
|
||
jobs: | ||
get-tag: | ||
runs-on: ubuntu-latest | ||
name: Get tag | ||
check-version: | ||
name: Check if the version has been updated | ||
outputs: | ||
tag: ${{ steps.parse-tag.outputs.tag }} | ||
has_changed: ${{ steps.check.outputs.has_changed }} | ||
version: ${{ steps.versions.outputs.new_version }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: aica-technology/.github/.github/actions/[email protected] | ||
id: parse-tag | ||
with: | ||
fetch-depth: 2 | ||
- id: versions | ||
run: | | ||
PREV_VERSION=$(git show HEAD^:VERSION) | ||
NEW_VERSION=$(git show HEAD:VERSION) | ||
echo "prev_version=${PREV_VERSION}" >> $GITHUB_OUTPUT | ||
echo "new_version=${NEW_VERSION}" >> $GITHUB_OUTPUT | ||
shell: bash | ||
- uses: aica-technology/.github/.github/actions/[email protected] | ||
id: check | ||
with: | ||
previous_version: ${{ steps.versions.outputs.prev_version }} | ||
new_version: ${{ steps.versions.outputs.new_version }} | ||
|
||
metadata: | ||
name: Get metadata | ||
needs: check-version | ||
runs-on: ubuntu-latest | ||
outputs: | ||
image_name: ${{ steps.ensure-image.outputs.image_name }} | ||
image_tags: ${{ steps.tags.outputs.image_tags }} | ||
create_tag: ${{ steps.tags.outputs.create_tag }} | ||
git_tag: ${{ steps.tags.outputs.git_tag }} | ||
steps: | ||
- uses: aica-technology/.github/.github/actions/[email protected] | ||
id: ensure-image | ||
with: | ||
image_name: aica-technology/modulo | ||
|
||
- run: | | ||
CREATE_TAG=false | ||
GIT_TAG="" | ||
if [ ${{ needs.check-version.outputs.has_changed }} = 'true' ]; then | ||
CREATE_TAG=true | ||
GIT_TAG="v${{ needs.check-version.outputs.version }}" | ||
IMAGE_TAGS=latest,"${GIT_TAG}",rolling | ||
else | ||
IMAGE_TAGS=rolling | ||
fi | ||
echo "Image tags: ${IMAGE_TAGS}" | ||
echo "Create tag: ${CREATE_TAG}" | ||
echo "Git tag: ${GIT_TAG}" | ||
echo "image_tags=${IMAGE_TAGS}" >> $GITHUB_OUTPUT | ||
echo "create_tag=${CREATE_TAG}" >> $GITHUB_OUTPUT | ||
echo "git_tag=${GIT_TAG}" >> $GITHUB_OUTPUT | ||
id: tags | ||
shell: bash | ||
build: | ||
needs: [get-tag] | ||
needs: metadata | ||
strategy: | ||
matrix: | ||
arch: [amd64, arm64] | ||
|
@@ -38,24 +82,24 @@ jobs: | |
- uses: aica-technology/.github/.github/actions/[email protected] | ||
id: merge-tags | ||
with: | ||
list: ${{ needs.get-tag.outputs.tag }} | ||
list: ${{ needs.metadata.outputs.image_tags }} | ||
suffixes: ${{ matrix.arch }} | ||
glue_separator: "-" | ||
|
||
- uses: aica-technology/.github/.github/actions/[email protected] | ||
with: | ||
image_name: aica-technology/modulo | ||
image_name: ${{ needs.metadata.outputs.image_name }} | ||
image_tags: ${{ steps.merge-tags.outputs.list }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
multi-arch: | ||
runs-on: ubuntu-latest | ||
name: Merge into a multi-arch image | ||
needs: [get-tag, build] | ||
needs: [ metadata, build ] | ||
steps: | ||
- uses: aica-technology/.github/.github/actions/[email protected] | ||
with: | ||
image_name: aica-technology/modulo | ||
image_tags: ${{ needs.get-tag.outputs.tag }} | ||
image_name: ${{ needs.metadata.outputs.image_name }} | ||
image_tags: ${{ needs.metadata.outputs.image_tags }} | ||
archs: amd64,arm64 | ||
token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ on: | |
push: | ||
branches: | ||
- main | ||
- develop | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
{ | ||
"C_Cpp.clang_format_style": "file:/home/ros2/.clang-format", | ||
"cmake.sourceDirectory": "/home/ros2/ws/src/modulo_components", | ||
"python.analysis.typeCheckingMode": "basic", | ||
"python.languageServer": "Pylance", | ||
"editor.rulers": [ | ||
120 | ||
], | ||
"autopep8.args": ["--max-line-length", "120", "--experimental"], | ||
"pylint.args": ["--generate-members", "--max-line-length", "120", "-d", "C0114", "-d", "C0115", "-d", "C0116"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.1.0 | ||
3.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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>modulo_component_interfaces</name> | ||
<version>3.1.0</version> | ||
<version>3.2.0</version> | ||
<description>Interface package for communicating with modulo components through the ROS framework</description> | ||
<maintainer email="[email protected]">Enrico Eberhard</maintainer> | ||
<license>GPLv3</license> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.