1
-
2
- name : ESP32 S3
1
+ name : ESP32
3
2
4
3
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onschedule
5
4
on :
6
5
push :
7
6
pull_request :
8
7
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"
13
12
14
13
jobs :
15
- tensorflow_micropython_esp32_s3_build :
14
+ tensorflow_micropython_esp32_build :
16
15
runs-on : ubuntu-latest
17
16
18
17
steps :
19
18
- name : Checkout repository
20
- uses : actions/checkout
19
+ uses : actions/checkout@v4
21
20
- name : Prepare to Build Tensorflow Micropython Firmware for ESP32
22
21
run : |
23
22
git submodule init
@@ -35,32 +34,32 @@ jobs:
35
34
# later get this like this: git ls-remote --heads https://github.com/espressif/esp-idf
36
35
# this commit is hard-coded in micropython/tools/ci.sh
37
36
run : |
38
- IDF_COMMIT=5bb59b00e72f8f91eb24d8c65bf9a7ea2b8a4f5f
37
+ IDF_COMMIT=142bb32c50fa9875b8b69fa539a2d59559460d72
39
38
echo "esp-idf-commit=$IDF_COMMIT" >> $GITHUB_ENV
40
39
TFLM_COMMIT=$(git submodule status tensorflow | awk '{print ($1)}')
41
40
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 }}
50
49
- name : Setup IDF
51
- # if: steps.cache-esp-idf.outputs.cache-hit != 'true'
50
+ # if: steps.cache-esp-idf.outputs.cache-hit != 'true'
52
51
run : |
53
- source ./micropython/tools/ci.sh && ci_esp32_idf44_setup
52
+ source ./micropython/tools/ci.sh && ci_esp32_setup_helper v4.3.1
54
53
- name : Cache tflm
55
54
id : cache-tflm
56
- uses : actions/cache
55
+ uses : actions/cache@v4
57
56
env :
58
57
cache-name : cache-tflm
59
58
with :
60
59
path : ./micropython-modules/microlite/tflm
61
60
key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.tflm-commit }}
62
61
- name : Setup Build for Tensorflow
63
- if : steps.cache-tflm.outputs.cache-hit != 'true'
62
+ # if: steps.cache-tflm.outputs.cache-hit != 'true'
64
63
run : |
65
64
66
65
source ./esp-idf/export.sh
@@ -76,96 +75,93 @@ jobs:
76
75
../micropython-modules/microlite/prepare-tflm-esp.sh
77
76
78
77
- name : Build micropython cross compiler
79
- run : |
78
+ run : |
80
79
source ./esp-idf/export.sh
81
80
cd ./micropython
82
81
echo "make -C mpy-cross V=1 clean all"
83
82
make -C mpy-cross V=1 clean all
84
83
85
- - name : Build standard non-ps ram ESP32 S3 8MB FLASH
84
+ - name : Build standard non-psram 4MB Flash firmware
86
85
run : |
87
-
88
86
source ./esp-idf/export.sh
89
87
90
- echo "cd ./boards/esp32/MICROLITE_S3 "
91
- cd ./boards/esp32/MICROLITE_S3
88
+ echo "cd ./boards/esp32/MICROLITE "
89
+ cd ./boards/esp32/MICROLITE
92
90
93
- echo "Building ESP32-MICROLITE_S3 "
91
+ echo "Building MICROLITE "
94
92
rm -rf builds
95
93
idf.py clean build
96
94
97
95
../../../micropython-modules/microlite/assemble-unified-image-esp.sh \
98
96
../../../micropython/ports/esp32
99
97
100
- - name : Archive ESP32-MICROLITE_S3 firmware
101
- uses : actions/upload-artifact
98
+ - name : Archive ESP32-MICROLITE firmware
99
+ uses : actions/upload-artifact@v4
102
100
with :
103
- name : microlite-esp32s3 -firmware
101
+ name : microlite-esp32 -firmware
104
102
path : |
105
- boards/esp32/MICROLITE_S3 /build/firmware.bin
103
+ boards/esp32/MICROLITE /build/firmware.bin
106
104
107
- - name : Build ESP32 S3 psram support and 8MB Flash firmware
105
+ - name : Build with psram support and 16MB Flash firmware
108
106
run : |
109
-
110
107
source ./esp-idf/export.sh
111
108
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
114
111
115
- echo "Building ESP32-MICROLITE_S3_SPIRAM "
116
- rm -rf builds
112
+ echo "Building MICROLITE_SPIRAM_16M "
113
+ rm -rf build
117
114
idf.py clean build
118
115
119
116
../../../micropython-modules/microlite/assemble-unified-image-esp.sh \
120
117
../../../micropython/ports/esp32
121
118
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
124
121
with :
125
- name : microlite-esp32s3- spiram-firmware
122
+ name : microlite-spiram-16m-esp32 -firmware
126
123
path : |
127
- boards/esp32/MICROLITE_S3_SPIRAM /build/firmware.bin
124
+ boards/esp32/MICROLITE_SPIRAM_16M /build/firmware.bin
128
125
129
- - name : Build ESP32 S3 psram support and 8MB Flash firmware - spiram cs gpio 20
126
+ - name : Build with psram support
130
127
run : |
131
-
132
128
source ./esp-idf/export.sh
133
129
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
136
132
137
- echo "Building ESP32-MICROLITE_S3_SPIRAM_CS_GPIO_20 "
138
- rm -rf builds
133
+ echo "Building MICROLITE_SPIRAM "
134
+ rm -rf build
139
135
idf.py clean build
140
136
141
137
../../../micropython-modules/microlite/assemble-unified-image-esp.sh \
142
138
../../../micropython/ports/esp32
143
139
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
146
142
with :
147
- name : microlite-esp32-s3- spiram-cs-gpio-20 -firmware
143
+ name : microlite-spiram-esp32 -firmware
148
144
path : |
149
- boards/esp32/MICROLITE_S3_SPIRAM_CS_GPIO_20 /build/firmware.bin
145
+ boards/esp32/MICROLITE_SPIRAM /build/firmware.bin
150
146
151
- - name : Build ESP32 S3 psram support and 8MB Flash firmware - OCTAL SPIRAM
147
+ - name : Build MICROLITE_SPIRAM_CAM
152
148
run : |
153
149
154
150
source ./esp-idf/export.sh
155
151
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
158
154
159
- echo "Building ESP32-MICROLITE_S3_SPIRAM_OCTAL "
155
+ echo "Building MICROLITE_SPIRAM_CAM "
160
156
rm -rf builds
161
157
idf.py clean build
162
158
163
159
../../../micropython-modules/microlite/assemble-unified-image-esp.sh \
164
160
../../../micropython/ports/esp32
165
161
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
168
164
with :
169
- name : microlite-esp32-s3- spiram-octal -firmware
165
+ name : microlite-spiram-cam-esp32 -firmware
170
166
path : |
171
- boards/esp32/MICROLITE_S3_SPIRAM_OCTAL /build/firmware.bin
167
+ boards/esp32/MICROLITE_SPIRAM_CAM /build/firmware.bin
0 commit comments