Compare commits

...

9 Commits

Author SHA1 Message Date
2bc3e68119 Add esp idf build workflow
Some checks failed
clang-format Check / Formatting Check (map[check:main/src exclude:]) (push) Has been cancelled
2023-11-26 19:32:39 +01:00
d254049421 Try official clang-format action
Some checks failed
clang-format Check / Formatting Check (map[check:main/src exclude:]) (push) Failing after 10s
2023-11-26 19:15:28 +01:00
a84ad5b430 Use newest version of clang format action
Some checks failed
clang-format Check / Formatting Check (map[check:main/src]) (push) Failing after 5s
2023-11-26 19:09:00 +01:00
8fc5c0ead6 Test commit
Some checks failed
clang-format Check / Formatting Check (map[check:main/src]) (push) Failing after 56s
2023-11-26 18:59:39 +01:00
6f09edbdfd CI test commit
Some checks failed
clang-format Check / Formatting Check (map[check:main/src]) (push) Failing after 54m36s
2023-11-25 18:48:50 +01:00
9b41d1d399 Change ubuntu version to 20.04
Some checks failed
clang-format Check / Formatting Check (map[check:main/src]) (push) Failing after 46s
2023-11-25 18:13:49 +01:00
1bcb7a7981 Test new version of action for workflow
Some checks failed
clang-format Check / Formatting Check (map[check:main/src]) (push) Failing after 38s
2023-11-25 17:56:42 +01:00
c8dc085cc7 Add main/src folder to format check paths
Some checks failed
clang-format Check / Formatting Check (components) (push) Successful in 22s
clang-format Check / Formatting Check (main/src) (push) Failing after 22s
2023-11-25 17:50:41 +01:00
f91d7b5335 Add clang format and corresponding ci action
Some checks failed
clang-format Check / Formatting Check (components) (push) Successful in 2m43s
clang-format Check / Formatting Check (main) (push) Failing after 30s
2023-11-25 17:46:16 +01:00
3 changed files with 64 additions and 0 deletions

28
.clang-format Normal file
View File

@ -0,0 +1,28 @@
BasedOnStyle: LLVM
Language: Cpp
IndentWidth: 4
UseTab: Never
#NamespaceIndentation: All
PointerAlignment: Left
AccessModifierOffset: -4
AlwaysBreakTemplateDeclarations: true
LambdaBodyIndentation: Signature
MaxEmptyLinesToKeep: 3
#ColumnLimit: 128
CompactNamespaces: true
FixNamespaceComments: true
AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: true
AlignConsecutiveAssignments: true
AlignConsecutiveBitFields: true
AlignConsecutiveDeclarations: true
AlignConsecutiveMacros: true
#BraceWrapping:
# BeforeElse: true

View File

@ -0,0 +1,16 @@
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: esp-idf build
uses: espressif/esp-idf-ci-action@v1
with:
esp_idf_version: v4.4
target: esp32s2
path: 'esp32-s2-hmi-devkit-1/examples/smart-panel'

View File

@ -0,0 +1,20 @@
name: clang-format Check
on: [push, pull_request]
jobs:
formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
strategy:
matrix:
path:
- check: 'main/src'
exclude: '' # Nothing to exclude
steps:
- uses: actions/checkout@v3
- name: Run clang-format style check for C/C++/Protobuf programs.
uses: jidicula/clang-format-action@v4.11.0
with:
clang-format-version: '13'
check-path: ${{ matrix.path['check'] }}
exclude-regex: ${{ matrix.path['exclude'] }}
fallback-style: 'Mozilla' # optional