Page 1 of 1

How to use esp-idf docker container with Github actions

Posted: Thu Mar 24, 2022 7:21 pm
by vChavezB
Hello everyone,

I am trying to integrate CI/CD to a project that I am porting to the ESP32

https://github.com/vChavezB/qpcpp/tree/esp32

As I want to add some unit tests, I want to build the software and emulate it with QEMU.

I wanted to know if someone has used Github to integrate CI/CD with the esp-idf framework. So far I have created a new branch where I am testing the CI/CD:

https://github.com/vChavezB/qpcpp/blob/ ... /esp32.yml

The linked yaml file is the workflow for the Github server. Github pulls the docker container but when trying to use the idf.py script I get the following error

idf.py build
shell: sh -e {0}
/__w/_temp/b83b8019-3c3a-4e74-b73f-7e3769e906c5.sh: 1: idf.py: not found

The IDF_PATH env. variable seems to be set correctly but the directories (such as esp-idf/tools) are not symbolically linked it seems.

Any guidance or project in Github which already uses the esp-idf docker container could also be of help to solve this issue.

Best regads