Skip to content

Commit 8b52fce

Browse files
committed
Add build step
1 parent f2368b7 commit 8b52fce

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/cicd.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,24 @@ jobs:
4848
./install.sh all
4949
echo "ESP-IDF installation complete"
5050
51+
- name: Build Firmware
52+
run: |
53+
cd ~/esp/esp-idf
54+
. ./export.sh
55+
cd $GITHUB_WORKSPACE
56+
# Force full clean to ensure sdkconfig.defaults is used
57+
idf.py fullclean
58+
# Set target to ESP32-C3 (RISC-V)
59+
idf.py set-target esp32c3
60+
# Verify the config was set correctly
61+
echo "Checking MLONMCU_FRAMEWORK setting:"
62+
grep "CONFIG_MLONMCU_FRAMEWORK" sdkconfig || echo "Not found in sdkconfig"
63+
grep "CONFIG_MLONMCU_FRAMEWORK" sdkconfig.defaults || echo "Not found in defaults"
64+
# Build with fresh config
65+
idf.py build
5166
67+
- name: Upload firmware as artifact
68+
uses: actions/upload-artifact@v4
69+
with:
70+
name: esp32-firmware
71+
path: build/app.bin

0 commit comments

Comments
 (0)