Skip to content
Draft
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
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: "weekly"
37 changes: 37 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: ROS Industrial CI

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
industrial-ci:
name: Run Industrial CI
runs-on: ubuntu-24.04-arm

strategy:
fail-fast: false

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Log into registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Run ROS Industrial CI
uses: ros-industrial/industrial_ci@master
env:
BEFORE_INIT: 'sh .github/workflows/install_deps.sh'
DOCKER_IMAGE: dustynv/ros:humble-ros-base-l4t-r36.3.0
CXXFLAGS: >-
-Wall -Wextra -Wpedantic -Wwrite-strings -Wunreachable-code -Wpointer-arith -Wredundant-decls
12 changes: 12 additions & 0 deletions .github/workflows/install_deps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/sh

apt-key adv --fetch-key https://repo.download.nvidia.com/jetson/jetson-ota-public.asc
echo "deb https://repo.download.nvidia.com/jetson/common r36.3 main" > /etc/apt/sources.list.d/nvidia-l4t-apt-source.list
echo "deb https://repo.download.nvidia.com/jetson/t234 r36.3 main" >> /etc/apt/sources.list.d/nvidia-l4t-apt-source.list


apt-get update
apt-get install -y \
libegl-dev \
libegl1 \
nvidia-l4t-jetson-multimedia-api
34 changes: 34 additions & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Check pre-commit

on:
pull_request:
push:
branches:
- main
workflow_dispatch:

jobs:
pre-commit:
name: Format
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Install clang-format-14
run: sudo apt-get install clang-format-14 cppcheck

- name: Run pre-commit
uses: pre-commit/[email protected]
id: precommit

- name: Upload pre-commit changes
if: failure() && steps.precommit.outcome == 'failure'
uses: rhaschke/upload-git-patch-action@main
with:
name: pre-commit
28 changes: 8 additions & 20 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,6 @@ repos:
- id: mixed-line-ending
- id: trailing-whitespace

# - repo: https://github.com/pocc/pre-commit-hooks
# rev: v1.3.5
# hooks:
# - id: clang-format
# args: [--style=Google]
# - id: clang-tidy
# - id: oclint
# - id: uncrustify
# - id: cppcheck
# - id: cpplint
# args: ["--filter=-build/include_order,-readability/todo,-whitespace/indent_namespace"]
# - id: include-what-you-use

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v20.1.0
hooks:
Expand All @@ -41,11 +28,12 @@ repos:
- id: cpplint
exclude: ^(.*\.cu|thirdparty/.*)$
args: ["--filter=-build/include_order,-readability/todo,-whitespace/indent_namespace"]
- id: cppcheck
exclude: .cu


- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.2
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.2
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format
Loading