Skip to content

Build ESPHome

Build ESPHome #1977

name: homeThing Builder
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 */6 * * *'
jobs:
lint:
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
devices: ['tdisplay-ipod', 'tdisplay-megadesk', 'tdisplay-t4', 'm5stack-fire', 'm5stack-stickc', 'm5stack-stickcplus-rotary', 'tdisplay-s3']
steps:
- uses: actions/checkout@v2
- uses: DoozyX/clang-format-lint-action@v0.15
with:
source: '.'
extensions: 'h,cpp'
style: file
exclude: './components/homeThing/version.h'
clangFormatVersion: 15
- name: Create file
run: |
echo "d2lmaV9ic3NpZDogIjFDOjg3OjJDOjcwOkMyOkMyIgp3aWZpX3NzaWQ6ICJzc2lkIgp3aWZpX3Bhc3N3b3JkOiAid2lmaXBhc3MiCndpZmlfZmFsbGJhY2tfcGFzc3dvcmQ6ICJ3aWZpZmFsbGJhY2twYXNzIgphcGlfZW5jcnlwdGlvbjogImFwaWVuY3J5cHRpb24iCm90YV9lbmNyeXB0aW9uOiAib3RhZW5jcnlwdGlvbiIK" | base64 --decode > secrets.yaml
- name: Build esphome
uses: esphome/build-action@v1.8.0
with:
yaml_file: ${{ matrix.devices }}.yaml