Skip to content

Change esp32 to build on top of the tflite-micro-esp-examples idf component #355

Change esp32 to build on top of the tflite-micro-esp-examples idf component

Change esp32 to build on top of the tflite-micro-esp-examples idf component #355

Workflow file for this run

name: ESP32
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onschedule
on:
push:
pull_request:
paths:
- ".github/workflows/build_esp32.yml"
- "micropython-modules/microlite/**"
- "micropython-modules/micropython-camera-driver/**"
jobs:
tensorflow_micropython_esp32_build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
repository: 'm'
path: ''
# - uses: actions/setup-python@v2
# with:
# python-version: '3.9'
# - name: Setup cmake
# uses: jwlawson/actions-setup-cmake@v1.13
# with:
# cmake-version: '3.18.4'
- name: Get Date
id: get-date
run: |
echo "date=$(/bin/date -u "+%Y%m%d")" >> $GITHUB_OUTPUT
shell: bash
# - uses: actions/cache@v3
# id: cache
# with:
# path: |
# dependencies/**
# esp-idf/**
# key: ${{ steps.get-date.outputs.date }}
- name: Prepare to Build Tensorflow Micropython Firmware for ESP32
# if: steps.cache.outputs.cache-hit != 'true'
run: |
pwd
python --version
cmake --version
getconf ARG_MAX
which python
pip3 install Pillow
pip3 install Wave
source ./scripts/build.sh && prepare_dependencies
source ./dependencies/micropython/tools/ci.sh && ci_esp32_idf50_setup
echo "BUILDING MICROLITE"
source ./scripts/build.sh && build_esp32 "MICROLITE"
./scripts/assemble-unified-image-esp.sh ./dependencies/micropython "MICROLITE"
shell: bash
# - name: Build standard non-psram 4MB Flash firmware
# run: |
# pip3 install Pillow
# pip3 install Wave
# rm -rf ./dependencies/micropython/ports/esp32/build-MICROLITE
# source ./esp-idf/export.sh
# source ./scripts/build.sh && build_esp32 "MICROLITE"
# ./scripts/assemble-unified-image-esp.sh ./dependencies/micropython/ports/esp32 "MICROLITE"
# shell: bash
- name: Archive ESP32-MICROLITE firmware
uses: actions/upload-artifact@v2
with:
name: microlite-esp32-firmware
path: |
dependencies/micropython/build-MICROLITE/firmware.bin
# - name: Build with psram support and 16MB Flash firmware
# run: |
# source ./esp-idf/export.sh
# echo "cd ./boards/esp32/MICROLITE_SPIRAM_16M"
# cd ./boards/esp32/MICROLITE_SPIRAM_16M
# echo "Building MICROLITE_SPIRAM_16M"
# rm -rf build
# idf.py clean build
# ../../../micropython-modules/microlite/assemble-unified-image-esp.sh \
# ../../../micropython/ports/esp32
# - name: Archive ESP32-MICROLITE-SPIRAM-16M firmware
# uses: actions/upload-artifact@v2
# with:
# name: microlite-spiram-16m-esp32-firmware
# path: |
# boards/esp32/MICROLITE_SPIRAM_16M/build/firmware.bin
# - name: Build with psram support
# run: |
# source ./esp-idf/export.sh
# echo "cd ./boards/esp32/MICROLITE_SPIRAM"
# cd ./boards/esp32/MICROLITE_SPIRAM
# echo "Building MICROLITE_SPIRAM"
# rm -rf build
# idf.py clean build
# ../../../micropython-modules/microlite/assemble-unified-image-esp.sh \
# ../../../micropython/ports/esp32
# - name: Archive ESP32-MICROLITE-SPIRAM firmware
# uses: actions/upload-artifact@v2
# with:
# name: microlite-spiram-esp32-firmware
# path: |
# boards/esp32/MICROLITE_SPIRAM/build/firmware.bin
# - name: Build MICROLITE_SPIRAM_CAM
# run: |
# source ./esp-idf/export.sh
# echo "cd ./boards/esp32/MICROLITE_SPIRAM_CAM"
# cd ./boards/esp32/MICROLITE_SPIRAM_CAM
# echo "Building MICROLITE_SPIRAM_CAM"
# rm -rf builds
# idf.py clean build
# ../../../micropython-modules/microlite/assemble-unified-image-esp.sh \
# ../../../micropython/ports/esp32
# - name: Archive ESP32-MICROLITE_SPIRAM_CAM firmware
# uses: actions/upload-artifact@v2
# with:
# name: microlite-spiram-cam-esp32-firmware
# path: |
# boards/esp32/MICROLITE_SPIRAM_CAM/build/firmware.bin