Skip to content

Commit 32d1a94

Browse files
committed
Adding QEmu to esp-idf CI tests
1 parent 9d88cfc commit 32d1a94

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

.github/workflows/IDFBuild.yml

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -66,29 +66,6 @@ jobs:
6666
with:
6767
ref: ${{ github.event.pull_request.head.sha }}
6868

69-
# - name: Cache pip for ${{ matrix.esp-idf-fqbn }}
70-
# uses: actions/cache@v3
71-
# with:
72-
# path: ~/.cache/pip
73-
# key: ${{ runner.os }}-pip-${{ matrix.esp-idf-fqbn }}-${{ hashFiles('**/requirements.txt') }}
74-
# restore-keys: |
75-
# ${{ runner.os }}-pip-
76-
#
77-
# - name: Cache espressif tools for ${{ matrix.esp-idf-fqbn }}
78-
# uses: actions/cache@v3
79-
# id: espressif
80-
# with:
81-
# path: |
82-
# ~/.espressif
83-
# key: ${{ runner.os }}-espressif-${{ matrix.esp-idf-fqbn }}-${{ hashFiles('**/lockfiles') }}
84-
#
85-
# - name: Cache esp-idf for ${{ matrix.esp-idf-fqbn }}
86-
# id: cache-idf
87-
# uses: actions/cache@v3
88-
# with:
89-
# path: ~/esp/esp-idf
90-
# key: ${{ runner.os }}-idf-${{ matrix.esp-idf-fqbn }}-${{ hashFiles('**/lockfiles') }}
91-
9269
- name: Get/Check IDF ${{ matrix.esp-idf-fqbn }}
9370
run: |
9471
mkdir -p ~/esp
@@ -109,9 +86,8 @@ jobs:
10986
idf.py set-target $idf_board
11087
idf.py build merge-bin
11188
ls build/ -la
112-
# [[ -f "build/merged-binary.bin" ]] || exit 1
11389
echo "idf_board=$idf_board" >> $GITHUB_OUTPUT
114-
[[ $idf_board =~ ^esp32(c3|s3)?$ ]] && echo "qemu=true" >> $GITHUB_OUTPUT || echo "qemu=false" >> $GITHUB_OUTPUT
90+
if [[ "$idf_board" =~ ^esp32(c3|s3)?$ ]]; then echo "qemu=true" >> $GITHUB_OUTPUT; else || echo "qemu=false" >> $GITHUB_OUTPUT; fi
11591
11692
- name: Run ESP32 project in QEmu
11793
if: steps.idfbuild.outputs.qemu == 'true'

0 commit comments

Comments
 (0)