Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AzonInc committed Feb 6, 2025
1 parent 8a89a83 commit b22e22a
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 23 deletions.
9 changes: 9 additions & 0 deletions .github/arduino-component.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
packages:
common: !include shared.yaml

esp32:
board: "esp32dev"
framework:
type: arduino
version: 2.0.16
platform_version: 6.7.0
7 changes: 7 additions & 0 deletions .github/idf-component.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
packages:
common: !include shared.yaml

esp32:
board: "esp32dev"
framework:
type: esp-idf
9 changes: 2 additions & 7 deletions .github/test-config.yaml → .github/shared.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
---
esphome:
name: test-nuki

esp32:
board: "esp32dev"
framework:
type: esp-idf
version: recommended

wifi:
ssid: "My Network"
password: "My Password"

api:

logger:

external_components:
- source:
type: local
Expand Down
37 changes: 21 additions & 16 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
---
name: Build Component
name: Build Component

on:
push:
pull_request:
on:
push:
pull_request:

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]

- name: Compile Firmware
uses: esphome/[email protected]
with:
yaml-file: .github/test-config.yaml
- name: Compile Arduino Firmware
uses: esphome/[email protected]
with:
yaml-file: .github/arduino-component.yaml


- name: Compile IDF Firmware
uses: esphome/[email protected]
with:
yaml-file: .github/idf-component.yaml

0 comments on commit b22e22a

Please sign in to comment.