Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ name: Build

on: [pull_request]

env:
APP_NAME: 'Camera Display'
IDF_TARGET: 'esp32s3'
IDF_VERSION: 'v5.5.1'
IDF_COMPONENT_MANAGER: "1" # whether to enable the component manager or not
FLASH_TOTAL_OVERRIDE: '4194304' # 4MB flash app partition for main app

jobs:
build:

Expand All @@ -16,6 +23,16 @@ jobs:
- name: Build Main
uses: espressif/esp-idf-ci-action@v1
with:
esp_idf_version: release-v5.4
target: esp32s3
esp_idf_version: ${{ env.IDF_VERSION }}
target: ${{ env.IDF_TARGET }}
path: '.'

- name: Determine Size Delta
uses: esp-cpp/esp-idf-size-delta@v1
with:
app_name: ${{ env.APP_NAME }}
app_path: '.'
idf_target: ${{ env.IDF_TARGET }}
idf_version: ${{ env.IDF_VERSION }}
idf_component_manager: ${{ env.IDF_COMPONENT_MANAGER }}
flash_total_override: ${{ env.FLASH_TOTAL_OVERRIDE }}
26 changes: 24 additions & 2 deletions .github/workflows/package_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ on:
types: [published]
workflow_dispatch:

env:
APP_NAME: 'Camera Display'
IDF_VERSION: 'v5.5.1'
IDF_COMPONENT_MANAGER: "1" # whether to enable the component manager or not
FLASH_TOTAL_OVERRIDE: '4194304' # 4MB flash app partition for main app

jobs:
build:

Expand All @@ -18,12 +24,15 @@ jobs:
build:
# main (full) code
- name: 'byte90'
target: esp32s3
command: |
idf.py -DSDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.defaults.byte90" build
- name: 'esp-box'
target: esp32s3
command: |
idf.py -DSDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.defaults.esp-box" build
- name: 't-deck'
target: esp32s3
command: |
idf.py -DSDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.defaults.t-deck" build

Expand All @@ -38,8 +47,8 @@ jobs:
- name: Build Main Code
uses: espressif/esp-idf-ci-action@v1
with:
esp_idf_version: release-v5.4
target: esp32s3
esp_idf_version: ${{ env.IDF_VERSION }}
target: ${{ matrix.build.target }}
path: '.'
command: ${{ matrix.build.command }}

Expand Down Expand Up @@ -70,6 +79,19 @@ jobs:
with:
files: ${{ env.artifact_path }}

- name: Determine Size Delta
# only run this on the esp-box build and if the release is published
if: ${{ github.event.release && github.event.action == 'published' && matrix.build.name == 'esp-box' }}
uses: esp-cpp/esp-idf-size-delta@v1
with:
app_name: ${{ env.APP_NAME }}
app_path: "."
idf_target: ${{ matrix.build.target }}
idf_version: ${{ env.IDF_VERSION }}
idf_component_manager: ${{ env.IDF_COMPONENT_MANAGER }}
flash_total_override: ${{ env.FLASH_TOTAL_OVERRIDE }}
post_comment: 'false'

package:
name: Package the binaries into an executables for Windows, MacOS, and Linux (Ubuntu)
needs: build
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/static_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,5 @@ jobs:
# Do not build the project and do not use cmake to generate compile_commands.json
use_cmake: false

# Use the 5.4 release version since it's what we build with
esp_idf_version: release/v5.4

# (Optional) cppcheck args
cppcheck_args: --force --enable=all --inline-suppr --inconclusive --platform=mips32 --std=c++17 --suppressions-list=$GITHUB_WORKSPACE/suppressions.txt
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ development environment to be able to build and flash your target hardware.
### Environment

This project is an ESP-IDF project, currently [ESP-IDF
v.5.4](https://github.com/espressif/esp-idf).
v.5.5.1](https://github.com/espressif/esp-idf).

For information about setting up `ESP-IDF v5.4`, please see [the official
For information about setting up `ESP-IDF v5.5.1`, please see [the official
ESP-IDF getting started
documentation](https://docs.espressif.com/projects/esp-idf/en/v5.4/esp32s3/get-started/index.html).
documentation](https://docs.espressif.com/projects/esp-idf/en/v5.5.1/esp32s3/get-started/index.html).

### Build and Flash

Expand Down
Loading