Skip to content

Commit

Permalink
Add OpenCyphal Node (#3)
Browse files Browse the repository at this point in the history
* Added canard components

* Added OpenCyphal node.

* Added collapsible descriptions to settings in webpage.

* Split github workflow into build and release.

* Added some simple performance optimizations

* Removed *.dsdl files, and added update script to fetch and compile them.

* Removed unneeded reg DSDL headers.

* Updated status report wording.

* Changed cyphal node to keep trying sending heartbeat

---------

Co-authored-by: Marcin Anforowicz <[email protected]>
  • Loading branch information
manforowicz and Marcin Anforowicz authored Sep 12, 2024
1 parent 01ab1f0 commit 4cac9d2
Show file tree
Hide file tree
Showing 209 changed files with 51,778 additions and 346 deletions.
53 changes: 23 additions & 30 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,36 @@
name: Build

# Run this action during every push and pull request.
# 'workflow_call' lets this action be called by other actions.
on: [push, pull_request]
on:
push:
branches:
- "**"
pull_request:

# List of jobs that this action will run.
jobs:
# This job will build the project on ubuntu
# using esp-idf-ci-action.
build:

runs-on: ubuntu-latest

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

# Build the project using
# esp-idf-ci-action.
- name: Build
uses: espressif/esp-idf-ci-action@v1
with:
esp_idf_version: latest
target: esp32
path: '/'
command: |
idf.py build &&
cd build &&
mkdir merged &&
esptool.py --chip esp32 merge_bin -o merged/esp32_socketcand_adapter.bin @flash_args &&
cd ../
# If a tag was pushed, publish a release
# with the binaries produced by the previous step.
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: build/merged/esp32_socketcand_adapter.bin
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: "recursive"

# Build the project using
# esp-idf-ci-action.
- name: Test build
uses: espressif/esp-idf-ci-action@v1
with:
esp_idf_version: latest
target: esp32
path: "/"
command: |
idf.py build &&
cd build &&
mkdir merged &&
esptool.py --chip esp32 merge_bin -o merged/esp32_socketcand_adapter.bin @flash_args &&
cd ../
42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Release

# Run this action during every tag push.
on:
push:
tags:
- "**"

# List of jobs that this action will run.
jobs:
# This job will build the project on ubuntu
# using esp-idf-ci-action.
build:
runs-on: ubuntu-latest

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

# Build the project using
# esp-idf-ci-action.
- name: Build Release
uses: espressif/esp-idf-ci-action@v1
with:
esp_idf_version: v5.3.1
target: esp32
path: "/"
command: |
idf.py build &&
cd build &&
mkdir merged &&
esptool.py --chip esp32 merge_bin -o merged/esp32_socketcand_adapter.bin @flash_args &&
cd ../
# If a tag was pushed, publish a release
# with the binaries produced by the previous step.
- name: Publish Release
uses: softprops/action-gh-release@v2
with:
files: build/merged/esp32_socketcand_adapter.bin
5 changes: 5 additions & 0 deletions components/esp_canard/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
idf_component_register(
SRCS
"canard.c"
INCLUDE_DIRS "include"
)
Loading

0 comments on commit 4cac9d2

Please sign in to comment.