Skip to content

Commit 7837f2c

Browse files
committed
fix idf path
1 parent bda2af1 commit 7837f2c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/esp-idf-build.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,16 @@ jobs:
4747
CCACHE_DIR: /root/.ccache
4848
run: |
4949
set -euo pipefail
50-
source /opt/esp/esp-idf/export.sh
50+
# Location differs slightly across ESP-IDF container tags.
51+
if [[ -f /opt/esp/idf/export.sh ]]; then
52+
source /opt/esp/idf/export.sh
53+
elif [[ -f /opt/esp/esp-idf/export.sh ]]; then
54+
source /opt/esp/esp-idf/export.sh
55+
else
56+
echo "ERROR: ESP-IDF export.sh not found under /opt/esp"
57+
ls -la /opt/esp || true
58+
exit 1
59+
fi
5160
5261
echo "ESP-IDF version:"
5362
idf.py --version

0 commit comments

Comments
 (0)