Skip to content

Commit c4c3a73

Browse files
authored
chore: Update to esp-idf v5.5.1 and update dependencies (#14)
1 parent b9077ab commit c4c3a73

File tree

5 files changed

+121
-77
lines changed

5 files changed

+121
-77
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ name: Build
22

33
on: [pull_request]
44

5+
env:
6+
APP_NAME: 'Camera Display'
7+
IDF_TARGET: 'esp32s3'
8+
IDF_VERSION: 'v5.5.1'
9+
IDF_COMPONENT_MANAGER: "1" # whether to enable the component manager or not
10+
FLASH_TOTAL_OVERRIDE: '4194304' # 4MB flash app partition for main app
11+
512
jobs:
613
build:
714

@@ -16,6 +23,16 @@ jobs:
1623
- name: Build Main
1724
uses: espressif/esp-idf-ci-action@v1
1825
with:
19-
esp_idf_version: release-v5.4
20-
target: esp32s3
26+
esp_idf_version: ${{ env.IDF_VERSION }}
27+
target: ${{ env.IDF_TARGET }}
2128
path: '.'
29+
30+
- name: Determine Size Delta
31+
uses: esp-cpp/esp-idf-size-delta@v1
32+
with:
33+
app_name: ${{ env.APP_NAME }}
34+
app_path: '.'
35+
idf_target: ${{ env.IDF_TARGET }}
36+
idf_version: ${{ env.IDF_VERSION }}
37+
idf_component_manager: ${{ env.IDF_COMPONENT_MANAGER }}
38+
flash_total_override: ${{ env.FLASH_TOTAL_OVERRIDE }}

.github/workflows/package_main.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ on:
77
types: [published]
88
workflow_dispatch:
99

10+
env:
11+
APP_NAME: 'Camera Display'
12+
IDF_VERSION: 'v5.5.1'
13+
IDF_COMPONENT_MANAGER: "1" # whether to enable the component manager or not
14+
FLASH_TOTAL_OVERRIDE: '4194304' # 4MB flash app partition for main app
15+
1016
jobs:
1117
build:
1218

@@ -18,12 +24,15 @@ jobs:
1824
build:
1925
# main (full) code
2026
- name: 'byte90'
27+
target: esp32s3
2128
command: |
2229
idf.py -DSDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.defaults.byte90" build
2330
- name: 'esp-box'
31+
target: esp32s3
2432
command: |
2533
idf.py -DSDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.defaults.esp-box" build
2634
- name: 't-deck'
35+
target: esp32s3
2736
command: |
2837
idf.py -DSDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.defaults.t-deck" build
2938
@@ -38,8 +47,8 @@ jobs:
3847
- name: Build Main Code
3948
uses: espressif/esp-idf-ci-action@v1
4049
with:
41-
esp_idf_version: release-v5.4
42-
target: esp32s3
50+
esp_idf_version: ${{ env.IDF_VERSION }}
51+
target: ${{ matrix.build.target }}
4352
path: '.'
4453
command: ${{ matrix.build.command }}
4554

@@ -70,6 +79,19 @@ jobs:
7079
with:
7180
files: ${{ env.artifact_path }}
7281

82+
- name: Determine Size Delta
83+
# only run this on the esp-box build and if the release is published
84+
if: ${{ github.event.release && github.event.action == 'published' && matrix.build.name == 'esp-box' }}
85+
uses: esp-cpp/esp-idf-size-delta@v1
86+
with:
87+
app_name: ${{ env.APP_NAME }}
88+
app_path: "."
89+
idf_target: ${{ matrix.build.target }}
90+
idf_version: ${{ env.IDF_VERSION }}
91+
idf_component_manager: ${{ env.IDF_COMPONENT_MANAGER }}
92+
flash_total_override: ${{ env.FLASH_TOTAL_OVERRIDE }}
93+
post_comment: 'false'
94+
7395
package:
7496
name: Package the binaries into an executables for Windows, MacOS, and Linux (Ubuntu)
7597
needs: build

.github/workflows/static_analysis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,5 @@ jobs:
1616
# Do not build the project and do not use cmake to generate compile_commands.json
1717
use_cmake: false
1818

19-
# Use the 5.4 release version since it's what we build with
20-
esp_idf_version: release/v5.4
21-
2219
# (Optional) cppcheck args
2320
cppcheck_args: --force --enable=all --inline-suppr --inconclusive --platform=mips32 --std=c++17 --suppressions-list=$GITHUB_WORKSPACE/suppressions.txt

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ development environment to be able to build and flash your target hardware.
109109
### Environment
110110

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

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

118118
### Build and Flash
119119

0 commit comments

Comments
 (0)