54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
name: ESP-IDF Build
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- bootloader_components/**
|
|
- components/**
|
|
- main/**
|
|
pull_request:
|
|
merge_group:
|
|
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, latest]
|
|
idf_target:
|
|
[esp32, esp32c3, esp32c5, esp32c6, esp32h2, esp32p4, esp32s3]
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
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 }}
|
|
extra_docker_args: -DSDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.release"
|
|
- name: Archive build output artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: lighthouses-${{ matrix.idf_target }}-${{ matrix.idf_ver }}
|
|
path: |
|
|
build/flasher_args.json
|
|
build/storage.bin
|
|
build/ota_data_initial.bin
|
|
build/lighthouses.bin
|
|
build/bootloader/bootloader.bin
|
|
build/partition_table/partition-table.bin
|