Skip to content

Link CMakelist in mlif2 to use tvm #5

Link CMakelist in mlif2 to use tvm

Link CMakelist in mlif2 to use tvm #5

Workflow file for this run

name: CI/CD
on:
push:
branches: [ ci/setup-cicd]
pull_request:
permissions:
actions: read
contents: write
jobs:
# ------------------------------
# Job 1: Build ESP32 firmware
# ------------------------------
build-firmware:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache ESP-IDF Installation
id: cache-esp-idf
uses: actions/cache@v4
with:
path: |
~/esp/esp-idf
~/.espressif
key: ${{ runner.os }}-esp-idf-v5.2.2-stable
restore-keys: |
${{ runner.os }}-esp-idf-v5.2.2-
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y git wget flex bison gperf python3 python3-pip python3-venv \
cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0
- name: Setup ESP-IDF
if: steps.cache-esp-idf.outputs.cache-hit != 'true'
run: |
mkdir -p ~/esp
cd ~/esp
git clone -b v5.2.2 --recursive https://github.com/espressif/esp-idf.git
cd ~/esp/esp-idf
./install.sh all
echo "ESP-IDF installation complete"
- name: Build Firmware
run: |
cd ~/esp/esp-idf
. ./export.sh
cd $GITHUB_WORKSPACE/target_sw/app/micro_kws_esp32devboard_perf
# Force full clean to ensure sdkconfig.defaults is used
idf.py fullclean
# Set target to ESP32-C3 (RISC-V)
idf.py set-target esp32c3
# Verify the config was set correctly
echo "Checking MLONMCU_FRAMEWORK setting:"
grep "CONFIG_MLONMCU_FRAMEWORK" sdkconfig || echo "Not found in sdkconfig"
grep "CONFIG_MLONMCU_FRAMEWORK" sdkconfig.defaults || echo "Not found in defaults"
# Build with fresh config
idf.py build
- name: Upload firmware as artifact
uses: actions/upload-artifact@v4
with:
name: esp32-firmware
path: target_sw/app/micro_kws_esp32devboard_perf/build/app.bin