Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create workflow.yml #2

Merged
merged 52 commits into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
d6d37ee
Create workflow.yml
landonr Sep 12, 2023
daa5b5d
format megadesk
landonr Sep 12, 2023
3bece30
add .clang-format
landonr Sep 12, 2023
a62d319
Update workflow.yml
landonr Sep 12, 2023
f557a4b
Update workflow.yml
landonr Sep 12, 2023
aea1719
Update workflow.yml
landonr Sep 12, 2023
d5343f7
add new devices
landonr Sep 12, 2023
27accca
Update workflow.yml
landonr Sep 12, 2023
f53ba8f
Update workflow.yml
landonr Sep 12, 2023
ad61b91
Update workflow.yml
landonr Sep 12, 2023
24237c9
Update workflow.yml
landonr Sep 12, 2023
22ec96e
Update workflow.yml
landonr Sep 12, 2023
b791874
Update workflow.yml
landonr Sep 12, 2023
0d805cd
update devices
landonr Sep 12, 2023
ed4c8ad
Update workflow.yml
landonr Sep 12, 2023
e920c9d
Update workflow.yml
landonr Sep 12, 2023
925db52
Update workflow.yml
landonr Sep 12, 2023
5e71b68
update devices
landonr Sep 12, 2023
652fb5e
desk
landonr Sep 12, 2023
3efdbe0
update proto
landonr Sep 12, 2023
168ed2e
update fire
landonr Sep 12, 2023
fa72712
update homething lilygo
landonr Sep 12, 2023
99d6e4b
update stickcplusTest
landonr Sep 13, 2023
6ba7e31
remove clear remote
landonr Sep 13, 2023
32675bc
restore fire remote to cat control
landonr Sep 13, 2023
c1781c2
Update workflow.yml
landonr Sep 13, 2023
4be04d1
Update workflow.yml
landonr Sep 13, 2023
99bfbda
Update workflow.yml
landonr Sep 13, 2023
4882c54
Update workflow.yml
landonr Sep 13, 2023
d988894
Update workflow.yml
landonr Sep 13, 2023
459753a
Update workflow.yml
landonr Sep 13, 2023
34d52c8
Update workflow.yml
landonr Sep 13, 2023
19c3d2e
Update workflow.yml
landonr Sep 13, 2023
3488c0f
Update workflow.yml
landonr Sep 13, 2023
1fbb2c8
Update workflow.yml
landonr Sep 13, 2023
0d19ed3
Update workflow.yml
landonr Sep 13, 2023
fd9fbb6
Update workflow.yml
landonr Sep 13, 2023
e5eb15e
Update workflow.yml
landonr Sep 13, 2023
e63fa17
Update workflow.yml
landonr Sep 13, 2023
0bab8ae
Update workflow.yml
landonr Sep 13, 2023
22bd6c1
Update workflow.yml
landonr Sep 13, 2023
c7fbe95
Update workflow.yml
landonr Sep 13, 2023
0cb8c58
Update workflow.yml
landonr Sep 13, 2023
af074fc
Update workflow.yml
landonr Sep 13, 2023
175ed7a
Update workflow.yml
landonr Sep 13, 2023
3fcc411
Update workflow.yml
landonr Sep 13, 2023
f6fa2f2
Update workflow.yml
landonr Sep 13, 2023
a0e159f
Update workflow.yml
landonr Sep 13, 2023
483d9c1
Update workflow.yml
landonr Sep 13, 2023
8d604c6
Update workflow.yml
landonr Sep 13, 2023
f3f5af5
update fire
landonr Sep 13, 2023
34c7a0c
update desk pic and online font test
landonr Sep 13, 2023
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
83 changes: 83 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# Google C/C++ Code Style settings
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
# Author: Kehan Xue, kehan.xue (at) gmail.com

Language: Cpp
BasedOnStyle: Google
AccessModifierOffset: -1
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: None
AlignOperands: Align
AllowAllArgumentsOnNextLine: true
AllowAllConstructorInitializersOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: Never # To avoid conflict, set this "Never" and each "if statement" should include brace when coding
AllowShortLambdasOnASingleLine: Inline
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterReturnType: None
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: true
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: false
AfterClass: false
AfterStruct: false
AfterControlStatement: Never
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: false
BeforeElse: false
BeforeLambdaBody: false
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
BreakBeforeBinaryOperators: None
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeColon
BreakInheritanceList: BeforeColon
ColumnLimit: 80
CompactNamespaces: false
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DerivePointerAlignment: false # Make sure the * or & align on the left
EmptyLineBeforeAccessModifier: LogicalBlock
FixNamespaceComments: true
IncludeBlocks: Preserve
IndentCaseLabels: true
IndentPPDirectives: None
IndentWidth: 2
KeepEmptyLinesAtTheStartOfBlocks: true
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PointerAlignment: Left
ReflowComments: false
# SeparateDefinitionBlocks: Always # Only support since clang-format 14
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
SpaceBeforeSquareBrackets: false
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 2
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
SpacesInContainerLiterals: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: c++11
TabWidth: 4
UseTab: Never
57 changes: 57 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Build ESPHome

on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 */6 * * *'

jobs:
matrix_maker:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.create_matrix.outputs.matrix }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create yaml file matrix
id: create_matrix
run: |
# Read the list of YAML files and create a matrix
yaml_files=$(find . -not -name "secrets.yaml" -maxdepth 1 -type f -name "*.yaml" -exec echo {} \; | tr '\n' ' ')
yaml_array="[\"$(echo "$yaml_files" | sed 's/ /", "/g')\"]"
yaml_array=$(echo $yaml_array | sed 's/.....$/]/')
DATA=$(echo $yaml_array | jq -c )
echo "matrix=$DATA" >> $GITHUB_OUTPUT
- name: Debug output
run: echo "${{ steps.create_matrix.outputs.matrix }}"
build:
needs: matrix_maker
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
name: ${{ fromJSON(needs.matrix_maker.outputs.matrix) }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: CLang Format Lint
uses: DoozyX/[email protected]
with:
source: '.'
extensions: 'h,cpp'
style: file
exclude: '*/version.h'
clangFormatVersion: 15
- name: Create secrets file
run: |
echo "d2lmaV9ic3NpZDogIjFDOjg3OjJDOjcwOkMyOkMyIgp3aWZpX3NzaWQ6ICJzc2lkIgp3aWZpX3Bhc3N3b3JkOiAid2lmaXBhc3MiCndpZmlfZmFsbGJhY2tfcGFzc3dvcmQ6ICJ3aWZpZmFsbGJhY2twYXNzIgphcGlfZW5jcnlwdGlvbjogImFwaWVuY3J5cHRpb24iCm90YV9lbmNyeXB0aW9uOiAib3RhZW5jcnlwdGlvbiIK" | base64 --decode > secrets.yaml
- name: Build esphome
uses: esphome/[email protected]
with:
yaml_file: ${{ matrix.name }}
221 changes: 0 additions & 221 deletions clear-homething.yaml

This file was deleted.

Loading
Loading