Skip to content

Commit 289a6e2

Browse files
author
Minh Hai Chu
authored
Update CI/CD workflow for MLONMCU_HOME and build paths
Refactor CI/CD workflow to set MLONMCU_HOME environment variable and update paths for build outputs.
1 parent c95142d commit 289a6e2

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

.github/workflows/cicd.yml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ jobs:
8888
run: |
8989
source venv/bin/activate
9090
python3 -m mlonmcu.cli.main init -t kws workspace_kws --clone-models --non-interactive --allow-exists
91-
echo "MLONMCU_HOME=$GITHUB_WORKSPACE/mlonmcu/workspace_kws" >> $GITHUB_ENV
91+
92+
- name: Set MLONMCU_HOME env
93+
run: echo "MLONMCU_HOME=$GITHUB_WORKSPACE/mlonmcu/workspace_kws" >> $GITHUB_ENV
9294

9395
- name: Configure Git to use HTTPS with token
9496
run: |
@@ -106,6 +108,8 @@ jobs:
106108
echo "Running mlonmcu setup"
107109
python3 -m mlonmcu.cli.main setup -g
108110
python3 -m pip install -r $MLONMCU_HOME/requirements_addition.txt
111+
112+
python3 -m mlonmcu.cli.main setup --task clone_etiss_perf -v
109113
python3 -m mlonmcu.cli.main setup --task clone_etiss_perf_plugin -v
110114
111115
# Patch ETISS Channel.h for missing cstdint include
@@ -169,19 +173,6 @@ jobs:
169173
-c espidf.optimize=s \
170174
-c espidf.extra_cmake_defs="{'CONFIG_ENABLE_WIFI': 1}" \
171175
-v
172-
173-
echo "Listing build outputs:"
174-
cd $GITHUB_WORKSPACE/mlonmcu/workspace_kws/temp/sessions/latest/runs
175-
ls -la
176-
if [ -d */espidf/build ]; then
177-
cd */espidf/build
178-
echo "Firmware files:"
179-
ls -lah *.bin *.elf 2>/dev/null || echo "No .bin/.elf files in build/"
180-
ls -lah bootloader/bootloader.bin 2>/dev/null || echo "No bootloader"
181-
ls -lah partition_table/partition-table.bin 2>/dev/null || echo "No partition table"
182-
else
183-
echo "ERROR: espidf/build directory not found!"
184-
fi
185176
186177
- name: Upload simulation results
187178
uses: actions/upload-artifact@v4
@@ -199,5 +190,5 @@ jobs:
199190
with:
200191
name: esp32-firmware
201192
path: |
202-
mlonmcu/workspace_kws/temp/sessions/latest/runs/*/espidf/build/*.bin
193+
mlonmcu/workspace_kws/temp/sessions/latest/runs/latest/espidf/build/*.bin
203194
retention-days: 30

0 commit comments

Comments
 (0)