Skip to content
Merged
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
13 changes: 13 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
Language: Cpp
BasedOnStyle: LLVM
UseTab: ForIndentation
TabWidth: 4
IndentWidth: 4
BreakBeforeBraces: Allman
ColumnLimit: 0
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
SortIncludes: false
...
74 changes: 74 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: CI

on:
push:
pull_request:

jobs:
format:
name: clang-format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Check formatting
uses: jidicula/clang-format-action@v4.13.0
with:
clang-format-version: "17"
check-path: "."

lint:
name: arduino-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Lint library
uses: arduino/arduino-lint-action@v3
with:
# Use "submit" until the library is accepted into the Library Manager
# index; switch to "update" once it is listed.
library-manager: submit
compliance: strict

compile:
name: compile examples
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
fqbn:
- arduino:avr:uno
- arduino:avr:mega
steps:
- uses: actions/checkout@v7
- name: Compile example sketches
uses: arduino/compile-sketches@v1
with:
fqbn: ${{ matrix.fqbn }}
platforms: |
- name: arduino:avr
libraries: |
- source-path: ./
- source-url: https://github.com/madleech/Auto485.git
sketch-paths: |
- examples/hello_world
- examples/inputs_and_outputs
- examples/many_inputs
- examples/many_outputs
- examples/multiple_nodes
- examples/multiple_nodes_inputting
- examples/rs485_cmri_hello_world
- examples/rs485_rx_and_tx
- examples/susic_256_outputs

test:
name: native unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.x"
- name: Install PlatformIO
run: pip install --upgrade platformio
- name: Run tests
run: pio test -e native
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,15 @@ pip-log.txt

# Mac crap
.DS_Store


#############
## PlatformIO
#############

.pio/
.pioenvs/
.piolibdeps/
.vscode/
*.o
*.a
254 changes: 0 additions & 254 deletions CMRI.cpp

This file was deleted.

Loading