Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
21 changes: 21 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "WayBionic ROS 2 Jazzy",
"build": {
"dockerfile": "../docker/Dockerfile",
"context": "..",
"target": "development"
},
"workspaceMount": "source=${localWorkspaceFolder},target=/waybionic_ws/src/waybionic_ground_station,type=bind",
"workspaceFolder": "/waybionic_ws/src/waybionic_ground_station",
"remoteUser": "ubuntu",
"updateRemoteUserUID": true,
"init": true,
"postCreateCommand": "bash -c 'source /opt/ros/jazzy/setup.bash && cd /waybionic_ws && colcon build --symlink-install'",
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.cwd": "/waybionic_ws"
}
}
}
}
15 changes: 11 additions & 4 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
**install
**build
**log
docker/Dockerfile
.git
.vscode
**/build
**/install
**/log
**/__pycache__
**/*.py[cod]
**/.env
**/.env.*
**/easy_handeye2
**/ros2_aruco
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.py text eol=lf
*.sh text eol=lf
41 changes: 22 additions & 19 deletions .github/workflows/ros2_build_test.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,41 @@
name: ROS 2 Jazzy Build and Test
name: ROS 2 Jazzy Docker Build and Test

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
build-and-test:
runs-on: ubuntu-24.04
container:
image: ros:jazzy

steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
path: src/${{ github.event.repository.name }}

- name: Install Dependencies (rosdep)
- name: Validate Compose Configuration
run: |
apt-get update
rosdep update
rosdep install --from-paths src --ignore-src -r -y
docker compose -f compose.yaml config --quiet
docker compose -f compose.yaml -f docker/compose.wslg.yaml config --quiet

- name: Build Packages
shell: bash
run: |
source /opt/ros/jazzy/setup.bash
colcon build
- name: Build and Test Docker Image
run: docker build --progress=plain --target test --file docker/Dockerfile --tag waybionic-ground-station:ci .

build-and-test-arm64:
runs-on: ubuntu-24.04-arm

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Run Tests
shell: bash
- name: Validate Compose Configuration
run: |
source /opt/ros/jazzy/setup.bash
colcon test
colcon test-result --all
docker compose -f compose.yaml config --quiet
docker compose -f compose.yaml -f docker/compose.wslg.yaml config --quiet

- name: Build and Test Docker Image
run: docker build --progress=plain --target test --file docker/Dockerfile --tag waybionic-ground-station:ci .
Loading
Loading