Skip to content

Commit 7bd6844

Browse files
author
Minh Hai Chu
authored
Refactor CI/CD workflow for MLonMCU setup
1 parent 2793339 commit 7bd6844

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

.github/workflows/cicd.yml

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,6 @@ jobs:
8080
python3 -m venv venv
8181
source venv/bin/activate
8282
pip install -e .
83-
84-
- name: Reinstall mlonmcu in editable mode (fixes paths after cache restore)
85-
working-directory: mlonmcu
86-
shell: bash
87-
run: |
88-
source venv/bin/activate
89-
pip install -e . --no-deps
9083
9184
- name: Initialize MLonMCU workspace if cache missed
9285
if: steps.cache-mlonmcu.outputs.cache-hit != 'true'
@@ -95,26 +88,14 @@ jobs:
9588
run: |
9689
source venv/bin/activate
9790
python3 -m mlonmcu.cli.main init -t kws workspace_kws --clone-models --non-interactive --allow-exists
98-
99-
- name: Set MLONMCU_HOME env
100-
run: echo "MLONMCU_HOME=$GITHUB_WORKSPACE/mlonmcu/workspace_kws" >> $GITHUB_ENV
91+
echo "MLONMCU_HOME=$GITHUB_WORKSPACE/mlonmcu/workspace_kws" >> $GITHUB_ENV
10192
102-
- name: Cache MLonMCU dependencies (ETISS, toolchains, etc.)
103-
id: cache-deps
104-
uses: actions/cache@v4
105-
with:
106-
path: |
107-
mlonmcu/workspace_kws/deps
108-
key: mlonmcu-deps-${{ runner.os }}-v3-${{ hashFiles('mlonmcu/requirements.txt', 'mlonmcu/setup.py') }}
109-
restore-keys: |
110-
mlonmcu-deps-${{ runner.os }}-v3-
111-
mlonmcu-deps-${{ runner.os }}-
11293
- name: Configure Git to use HTTPS with token
11394
run: |
11495
git config --global url."https://${{ secrets.GITHUB_TOKEN }}@github.com/".insteadOf "[email protected]:"
11596
11697
- name: Setup MLonMCU toolchain
117-
if: steps.cache-deps.outputs.cache-hit != 'true'
98+
if: steps.cache-mlonmcu.outputs.cache-hit != 'true'
11899
working-directory: mlonmcu
119100
shell: bash
120101
run: |

0 commit comments

Comments
 (0)