Skip to content

Commit d0556df

Browse files
authored
Update build_esp32s3.yml
1 parent b334aa2 commit d0556df

File tree

1 file changed

+55
-59
lines changed

1 file changed

+55
-59
lines changed
Lines changed: 55 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
1-
2-
name: ESP32 S3
1+
name: ESP32
32

43
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onschedule
54
on:
65
push:
76
pull_request:
87
paths-ignore:
9-
- 'examples/**'
10-
- 'README.md'
11-
- 'ci/*unix*.sh'
12-
- '.github/workflows/build_unix.yml'
8+
- "examples/**"
9+
- "README.md"
10+
- "ci/*unix*.sh"
11+
- ".github/workflows/build_unix.yml"
1312

1413
jobs:
15-
tensorflow_micropython_esp32_s3_build:
14+
tensorflow_micropython_esp32_build:
1615
runs-on: ubuntu-latest
1716

1817
steps:
1918
- name: Checkout repository
20-
uses: actions/checkout
19+
uses: actions/checkout@v4
2120
- name: Prepare to Build Tensorflow Micropython Firmware for ESP32
2221
run: |
2322
git submodule init
@@ -35,32 +34,32 @@ jobs:
3534
# later get this like this: git ls-remote --heads https://github.com/espressif/esp-idf
3635
# this commit is hard-coded in micropython/tools/ci.sh
3736
run: |
38-
IDF_COMMIT=5bb59b00e72f8f91eb24d8c65bf9a7ea2b8a4f5f
37+
IDF_COMMIT=142bb32c50fa9875b8b69fa539a2d59559460d72
3938
echo "esp-idf-commit=$IDF_COMMIT" >> $GITHUB_ENV
4039
TFLM_COMMIT=$(git submodule status tensorflow | awk '{print ($1)}')
4140
echo "tflm-commit=$TFLM_COMMIT" >> $GITHUB_ENV
42-
# - name: Cache esp-idf
43-
# id: cache-esp-idf
44-
# uses: actions/cache@v2
45-
# env:
46-
# cache-name: cache-esp-idf
47-
# with:
48-
# path: ./esp-idf
49-
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.esp-idf-commit }}
41+
# - name: Cache esp-idf
42+
# id: cache-esp-idf
43+
# uses: actions/cache@v4
44+
# env:
45+
# cache-name: cache-esp-idf
46+
# with:
47+
# path: ./esp-idf
48+
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.esp-idf-commit }}
5049
- name: Setup IDF
51-
# if: steps.cache-esp-idf.outputs.cache-hit != 'true'
50+
# if: steps.cache-esp-idf.outputs.cache-hit != 'true'
5251
run: |
53-
source ./micropython/tools/ci.sh && ci_esp32_idf44_setup
52+
source ./micropython/tools/ci.sh && ci_esp32_setup_helper v4.3.1
5453
- name: Cache tflm
5554
id: cache-tflm
56-
uses: actions/cache
55+
uses: actions/cache@v4
5756
env:
5857
cache-name: cache-tflm
5958
with:
6059
path: ./micropython-modules/microlite/tflm
6160
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.tflm-commit }}
6261
- name: Setup Build for Tensorflow
63-
if: steps.cache-tflm.outputs.cache-hit != 'true'
62+
# if: steps.cache-tflm.outputs.cache-hit != 'true'
6463
run: |
6564
6665
source ./esp-idf/export.sh
@@ -76,96 +75,93 @@ jobs:
7675
../micropython-modules/microlite/prepare-tflm-esp.sh
7776
7877
- name: Build micropython cross compiler
79-
run: |
78+
run: |
8079
source ./esp-idf/export.sh
8180
cd ./micropython
8281
echo "make -C mpy-cross V=1 clean all"
8382
make -C mpy-cross V=1 clean all
8483
85-
- name: Build standard non-ps ram ESP32 S3 8MB FLASH
84+
- name: Build standard non-psram 4MB Flash firmware
8685
run: |
87-
8886
source ./esp-idf/export.sh
8987
90-
echo "cd ./boards/esp32/MICROLITE_S3"
91-
cd ./boards/esp32/MICROLITE_S3
88+
echo "cd ./boards/esp32/MICROLITE"
89+
cd ./boards/esp32/MICROLITE
9290
93-
echo "Building ESP32-MICROLITE_S3"
91+
echo "Building MICROLITE"
9492
rm -rf builds
9593
idf.py clean build
9694
9795
../../../micropython-modules/microlite/assemble-unified-image-esp.sh \
9896
../../../micropython/ports/esp32
9997
100-
- name: Archive ESP32-MICROLITE_S3 firmware
101-
uses: actions/upload-artifact
98+
- name: Archive ESP32-MICROLITE firmware
99+
uses: actions/upload-artifact@v4
102100
with:
103-
name: microlite-esp32s3-firmware
101+
name: microlite-esp32-firmware
104102
path: |
105-
boards/esp32/MICROLITE_S3/build/firmware.bin
103+
boards/esp32/MICROLITE/build/firmware.bin
106104
107-
- name: Build ESP32 S3 psram support and 8MB Flash firmware
105+
- name: Build with psram support and 16MB Flash firmware
108106
run: |
109-
110107
source ./esp-idf/export.sh
111108
112-
echo "cd ./boards/esp32/MICROLITE_S3_SPIRAM"
113-
cd ./boards/esp32/MICROLITE_S3_SPIRAM
109+
echo "cd ./boards/esp32/MICROLITE_SPIRAM_16M"
110+
cd ./boards/esp32/MICROLITE_SPIRAM_16M
114111
115-
echo "Building ESP32-MICROLITE_S3_SPIRAM"
116-
rm -rf builds
112+
echo "Building MICROLITE_SPIRAM_16M"
113+
rm -rf build
117114
idf.py clean build
118115
119116
../../../micropython-modules/microlite/assemble-unified-image-esp.sh \
120117
../../../micropython/ports/esp32
121118
122-
- name: Archive ESP32-MICROLITE_S3_SPIRAM firmware
123-
uses: actions/upload-artifact
119+
- name: Archive ESP32-MICROLITE-SPIRAM-16M firmware
120+
uses: actions/upload-artifact@v4
124121
with:
125-
name: microlite-esp32s3-spiram-firmware
122+
name: microlite-spiram-16m-esp32-firmware
126123
path: |
127-
boards/esp32/MICROLITE_S3_SPIRAM/build/firmware.bin
124+
boards/esp32/MICROLITE_SPIRAM_16M/build/firmware.bin
128125
129-
- name: Build ESP32 S3 psram support and 8MB Flash firmware - spiram cs gpio 20
126+
- name: Build with psram support
130127
run: |
131-
132128
source ./esp-idf/export.sh
133129
134-
echo "cd ./boards/esp32/MICROLITE_S3_SPIRAM_CS_GPIO_20"
135-
cd ./boards/esp32/MICROLITE_S3_SPIRAM_CS_GPIO_20
130+
echo "cd ./boards/esp32/MICROLITE_SPIRAM"
131+
cd ./boards/esp32/MICROLITE_SPIRAM
136132
137-
echo "Building ESP32-MICROLITE_S3_SPIRAM_CS_GPIO_20"
138-
rm -rf builds
133+
echo "Building MICROLITE_SPIRAM"
134+
rm -rf build
139135
idf.py clean build
140136
141137
../../../micropython-modules/microlite/assemble-unified-image-esp.sh \
142138
../../../micropython/ports/esp32
143139
144-
- name: Archive ESP32-MICROLITE_S3_SPIRAM_CS_GPIO_20 firmware
145-
uses: actions/upload-artifact
140+
- name: Archive ESP32-MICROLITE-SPIRAM firmware
141+
uses: actions/upload-artifact@v4
146142
with:
147-
name: microlite-esp32-s3-spiram-cs-gpio-20-firmware
143+
name: microlite-spiram-esp32-firmware
148144
path: |
149-
boards/esp32/MICROLITE_S3_SPIRAM_CS_GPIO_20/build/firmware.bin
145+
boards/esp32/MICROLITE_SPIRAM/build/firmware.bin
150146
151-
- name: Build ESP32 S3 psram support and 8MB Flash firmware - OCTAL SPIRAM
147+
- name: Build MICROLITE_SPIRAM_CAM
152148
run: |
153149
154150
source ./esp-idf/export.sh
155151
156-
echo "cd ./boards/esp32/MICROLITE_S3_SPIRAM_OCTAL"
157-
cd ./boards/esp32/MICROLITE_S3_SPIRAM_OCTAL
152+
echo "cd ./boards/esp32/MICROLITE_SPIRAM_CAM"
153+
cd ./boards/esp32/MICROLITE_SPIRAM_CAM
158154
159-
echo "Building ESP32-MICROLITE_S3_SPIRAM_OCTAL"
155+
echo "Building MICROLITE_SPIRAM_CAM"
160156
rm -rf builds
161157
idf.py clean build
162158
163159
../../../micropython-modules/microlite/assemble-unified-image-esp.sh \
164160
../../../micropython/ports/esp32
165161
166-
- name: Archive ESP32-MICROLITE_S3_SPIRAM_OCTAL firmware
167-
uses: actions/upload-artifact
162+
- name: Archive ESP32-MICROLITE_SPIRAM_CAM firmware
163+
uses: actions/upload-artifact@v4
168164
with:
169-
name: microlite-esp32-s3-spiram-octal-firmware
165+
name: microlite-spiram-cam-esp32-firmware
170166
path: |
171-
boards/esp32/MICROLITE_S3_SPIRAM_OCTAL/build/firmware.bin
167+
boards/esp32/MICROLITE_SPIRAM_CAM/build/firmware.bin

0 commit comments

Comments
 (0)