Skip to content

Bump esphome/build-action from 2 to 3 #42

Bump esphome/build-action from 2 to 3

Bump esphome/build-action from 2 to 3 #42

Workflow file for this run

name: CI
on: # yamllint disable-line rule:truthy
pull_request:
push:
branches:
- main
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: yaml-lint
uses: ibiqlik/action-yamllint@v3
build:
name: Build
runs-on: ubuntu-latest
needs: lint
strategy:
matrix:
# todo Build using aarch64 when supported in ESP-IDF.
arch:
- amd64
# - arm64
node:
- esp32-s3-box-3-01
steps:
- uses: actions/checkout@v4
- run: |
touch esphome/secrets.yaml
echo 'wifi_ssid: "Test WiFi SSID"' >> esphome/secrets.yaml
echo 'wifi_password: "Test WiFi Password"' >> esphome/secrets.yaml
printf 'esp32_s3_box_3_01_wifi_ap_password: "%s"\n' "$(tr -dc A-Za-z0-9 </dev/urandom | head -c 32 ; echo '')" >> esphome/secrets.yaml
printf 'esp32_s3_box_3_01_ota_password: "%s"\n' "$(tr -dc A-Za-z0-9 </dev/urandom | head -c 32 ; echo '')" >> esphome/secrets.yaml
echo 'esp32_s3_box_3_01_api_encryption_key: "NKnCdo4g9aBF30g1S1e7Gkcm0d+3OK7zik/Ni2VPFyk="' >> esphome/secrets.yaml
- uses: esphome/build-action@v3
id: esphome-build
with:
yaml_file: esphome/${{ matrix.node }}.yaml