Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
b2adc53
initial refactor
Miekale Feb 11, 2025
3f5a20a
read me update
Miekale Feb 11, 2025
8ecd61b
read me update
Miekale Feb 11, 2025
41e4c78
all folders set up
Miekale Feb 11, 2025
6d0626f
reseting active modules
Miekale Feb 11, 2025
0ee5f26
adding actions
Miekale Feb 12, 2025
36de426
change in name
Miekale Feb 12, 2025
62b9946
mod compose files
Miekale Feb 12, 2025
bce8703
adding version
Miekale Feb 12, 2025
8eef5a7
adding print
Miekale Feb 13, 2025
774d6f1
adding namespace
Miekale Feb 13, 2025
565da98
running infra container successfully
Miekale Feb 13, 2025
b6f07e6
ci battle
Miekale Feb 17, 2025
2c4c808
adding seperate folder for unused modules
Miekale Feb 17, 2025
4df1e96
print lines
Miekale Feb 17, 2025
6f8923b
ciO
Miekale Feb 17, 2025
f5ba75b
ciO
Miekale Feb 17, 2025
21570cd
ciO
Miekale Feb 17, 2025
b1372ec
dos
Miekale Feb 17, 2025
af2e6f9
adding new param
Miekale Feb 17, 2025
c0e0747
stupidied
Miekale Feb 17, 2025
c49bb7b
stupidied
Miekale Feb 17, 2025
c203caf
direct uses of workspace
Miekale Feb 17, 2025
c3b98ba
MODULRSNTENSEIN
Miekale Feb 17, 2025
425183f
MODULRSNTENSEIN
Miekale Feb 17, 2025
559774f
fixing modules
Miekale Feb 17, 2025
0f524de
exposing dockerfile
Miekale Feb 17, 2025
df73274
close.....
Miekale Feb 18, 2025
6379724
temp sanitization, sanitization
Miekale Feb 18, 2025
e90d0bc
temp sanitization, sanitization
Miekale Feb 18, 2025
4742a6e
sanitize
Miekale Feb 18, 2025
37ac56b
brain damage
Miekale Feb 18, 2025
d2bbf5c
deploy statement check
Miekale Feb 18, 2025
6e63b6d
typo
Miekale Feb 18, 2025
f3c7c11
working - without sanitization
Miekale Feb 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
176 changes: 176 additions & 0 deletions .github/include/base_image_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
{ "include":
[
{
"tag": "humble-ubuntu22.04",
"external_image": "ubuntu:22.04",
"injections": {
"ros2": "humble"
}
},
{
"tag": "foxy-ubuntu20.04",
"external_image": "ubuntu:20.04",
"injections": {
"ros2": "foxy"
}
},





{
"tag": "cuda11.0-foxy-ubuntu20.04",
"external_image": "nvcr.io/nvidia/cuda:11.0.3-runtime-ubuntu20.04",
"injections": {
"ros2": "foxy"
}
},
{
"tag": "cuda11.2-foxy-ubuntu20.04",
"external_image": "nvcr.io/nvidia/cuda:11.2.2-runtime-ubuntu20.04",
"injections": {
"ros2": "foxy"
}
},
{
"tag": "cuda11.4-foxy-ubuntu20.04",
"external_image": "nvcr.io/nvidia/cuda:11.4.3-runtime-ubuntu20.04",
"injections": {
"ros2": "foxy"
}
},
{
"tag": "cuda11.7-humble-ubuntu22.04",
"external_image": "nvcr.io/nvidia/cuda:11.7.1-runtime-ubuntu22.04",
"injections": {
"ros2": "humble"
}
},
{
"tag": "cuda11.8-humble-ubuntu22.04",
"external_image": "nvcr.io/nvidia/cuda:11.8.0-runtime-ubuntu22.04",
"injections": {
"ros2": "humble"
}
},
{
"tag": "cuda12.0-humble-ubuntu22.04",
"external_image": "nvcr.io/nvidia/cuda:12.0.0-runtime-ubuntu22.04",
"injections": {
"ros2": "humble"
}
},
{
"tag": "cuda12.2-humble-ubuntu22.04",
"external_image": "nvcr.io/nvidia/cuda:12.2.2-runtime-ubuntu22.04",
"injections": {
"ros2": "humble"
}
},


{
"tag": "cuda11.0-foxy-ubuntu20.04-devel",
"external_image": "nvcr.io/nvidia/cuda:11.0.3-devel-ubuntu20.04",
"injections": {
"ros2": "foxy"
}
},
{
"tag": "cuda11.2-foxy-ubuntu20.04-devel",
"external_image": "nvcr.io/nvidia/cuda:11.2.2-devel-ubuntu20.04",
"injections": {
"ros2": "foxy"
}
},
{
"tag": "cuda11.4-foxy-ubuntu20.04-devel",
"external_image": "nvcr.io/nvidia/cuda:11.4.3-devel-ubuntu20.04",
"injections": {
"ros2": "foxy"
}
},
{
"tag": "cuda11.7-humble-ubuntu22.04-devel",
"external_image": "nvcr.io/nvidia/cuda:11.7.1-devel-ubuntu22.04",
"injections": {
"ros2": "humble"
}
},
{
"tag": "cuda11.8-humble-ubuntu22.04-devel",
"external_image": "nvcr.io/nvidia/cuda:11.8.0-devel-ubuntu22.04",
"injections": {
"ros2": "humble"
}
},
{
"tag": "cuda12.0-humble-ubuntu22.04-devel",
"external_image": "nvcr.io/nvidia/cuda:12.0.0-devel-ubuntu22.04",
"injections": {
"ros2": "humble"
}
},
{
"tag": "cuda12.2-humble-ubuntu22.04-devel",
"external_image": "nvcr.io/nvidia/cuda:12.2.2-devel-ubuntu22.04",
"injections": {
"ros2": "humble"
}
},




{
"tag": "cuda11.0-cudnn8-foxy-ubuntu20.04",
"external_image": "nvcr.io/nvidia/cuda:11.0.3-cudnn8-runtime-ubuntu20.04",
"injections": {
"ros2": "foxy"
}
},
{
"tag": "cuda11.2-cudnn8-foxy-ubuntu20.04",
"external_image": "nvcr.io/nvidia/cuda:11.2.2-cudnn8-runtime-ubuntu20.04",
"injections": {
"ros2": "foxy"
}
},
{
"tag": "cuda11.4-cudnn8-foxy-ubuntu20.04",
"external_image": "nvcr.io/nvidia/cuda:11.4.3-cudnn8-runtime-ubuntu20.04",
"injections": {
"ros2": "foxy"
}
},
{
"tag": "cuda11.7-cudnn8-humble-ubuntu22.04",
"external_image": "nvcr.io/nvidia/cuda:11.7.1-cudnn8-runtime-ubuntu22.04",
"injections": {
"ros2": "humble"
}
},
{
"tag": "cuda11.8-cudnn8-humble-ubuntu22.04",
"external_image": "nvcr.io/nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04",
"injections": {
"ros2": "humble"
}
},
{
"tag": "cuda12.0-cudnn8-humble-ubuntu22.04",
"external_image": "nvcr.io/nvidia/cuda:12.0.0-cudnn8-runtime-ubuntu22.04",
"injections": {
"ros2": "humble"
}
},
{
"tag": "cuda12.2-cudnn8-humble-ubuntu22.04",
"external_image": "nvcr.io/nvidia/cuda:12.2.2-cudnn8-runtime-ubuntu22.04",
"injections": {
"ros2": "humble"
}
}
]
}
70 changes: 70 additions & 0 deletions .github/templates/check_src_changes/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Check source file changes

outputs:
modified_modules:
description: "Space deliminated list of modified modules"
value: ${{ steps.output-changes.outputs.modified_modules }}

runs:
using: "composite"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Find changed files outside of src directory
id: changed-files-outside-src
uses: tj-actions/changed-files@v42
with:
files: '!src/**'

- name: Find changed files inside src/wato_msgs folder
id: changed-files-wato-msgs
uses: tj-actions/changed-files@v42
with:
files: src/wato_msgs/**

- name: Find changed files inside src/controller folder
id: changed-files-controller
uses: tj-actions/changed-files@v42
with:
files: src/controller/**

- name: Get changed files inside src/interfacing folder
id: changed-files-interfacing
uses: tj-actions/changed-files@v42
with:
files: src/interfacing/**

- name: Get changed files inside src/perception folder
id: changed-files-perception
uses: tj-actions/changed-files@v42
with:
files: src/perception/**

- name: Get changed files inside src/samples folder
id: changed-files-samples
uses: tj-actions/changed-files@v42
with:
files: src/samples/**

- name: Get changed files inside src/simulation folder
id: changed-files-simulation
uses: tj-actions/changed-files@v42
with:
files: src/simulation/**

- name: Create list of changed modules
id: output-changes
env:
INFRASTRUCTURE_CHANGED: >
${{ steps.changed-files-wato-msgs.outputs.any_changed == 'true'
|| steps.changed-files-outside-src.outputs.any_changed == 'true' }}
CONTROLLER_CHANGED: ${{ steps.changed-files-controller.outputs.any_changed }}
INTERFACING_CHANGED: ${{ steps.changed-files-interfacing.outputs.any_changed }}
PERCEPTION_CHANGED: ${{ steps.changed-files-perception.outputs.any_changed }}
SAMPLES_CHANGED: ${{ steps.changed-files-samples.outputs.any_changed }}
SIMULATION_CHANGED: ${{ steps.changed-files-simulation.outputs.any_changed }}

run: ${{ github.action_path }}/check_src_changes.sh
shell: bash
47 changes: 47 additions & 0 deletions .github/templates/check_src_changes/check_src_changes.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/bin/bash
set -e

################# Create a space delimited list of modified modules #################
# Outputs a list of modified modules by comparing changes between main and current commit
# References previous GitHub workflow steps

# Controller
if [ $CONTROLLER_CHANGED == 'true' ]; then
echo "Detected controller changes"
MODIFIED_MODULES+="controller "
fi

# Interfacing
if [ $INTERFACING_CHANGED == 'true' ]; then
echo "Detected interfacing changes"
MODIFIED_MODULES+="interfacing "
fi

# Perception
if [ $PERCEPTION_CHANGED == 'true' ]; then
echo "Detected perception changes"
MODIFIED_MODULES+="perception "
fi

# Samples
if [ $SAMPLES_CHANGED == 'true' ]; then
echo "Detected samples changes"
MODIFIED_MODULES+="samples "
fi

# Simulation
if [ $SIMULATION_CHANGED == 'true' ]; then
echo "Detected simulation changes"
MODIFIED_MODULES+="simulation "
fi

# Infrastructure
if [ $INFRASTRUCTURE_CHANGED == 'true' ]; then
echo "::notice:: Detected infrastructure changes"
MODIFIED_MODULES="infrastructure"
else
echo "::notice:: MODIFIED_MODULES are $MODIFIED_MODULES"
fi

# Output lis
echo "modified_modules=$MODIFIED_MODULES" >> $GITHUB_OUTPUT
31 changes: 31 additions & 0 deletions .github/templates/docker_context/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Generate Docker Environment

inputs:
modified_modules:
description: "Space deliminated list of modified modules"
required: true
default: ''
modules_dir:
description: "Path to modules folder"
required: false
default: "/"

outputs:
docker_matrix:
description: "list of docker compose services"
value: ${{ steps.environment-generator.outputs.docker_matrix }}
registry:
description: "name of the docker registry we are using"
value: ${{ steps.environment-generator.outputs.registry }}
repository:
description: "name of the docker repository we are using"
value: ${{ steps.environment-generator.outputs.repository }}

runs:
using: "composite"
steps:
- id: environment-generator
env:
MODIFIED_MODULES: ${{ inputs.modified_modules }}
run: ${{ github.action_path }}/docker_context.sh
shell: bash
Loading
Loading