Files
warnemuende-lighthouses/.github/workflows/esp32_build.yaml
Peter Siegmund 63ed36094d mv .gitea .github
also add merge_bin

Signed-off-by: Peter Siegmund <mars3142@users.noreply.github.com>
2025-08-29 00:14:43 +02:00

46 lines
1.1 KiB
YAML

name: ESP-IDF Build
on:
push:
paths:
- ".gitea/workflows/**"
- "firmware/**"
pull_request:
merge_group:
workflow_dispatch:
schedule:
- cron: "0 5 * * 3"
permissions:
contents: read
pull-requests: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
idf_ver: [release-v5.4, release-v5.5, latest]
idf_target:
[esp32, esp32c3, esp32c5, esp32c6, esp32h2, esp32p4, esp32s3]
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: ESP-IDF build
uses: espressif/esp-idf-ci-action@v1
with:
esp_idf_version: ${{ matrix.idf_ver }}
target: ${{ matrix.idf_target }}
path: firmware
command: idf.py -DSDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.release" build && cd build && esptool.py --chip ${{ matrix.idf_target }} merge_bin -o release-${{ matrix.idf_target }}.bin @flash_args