This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build firmware | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' # Use an appropriate version of Python | |
- name: Install ESP-IDF dependencies | |
run: sudo apt-get install -y python3-pip git wget flex bison gperf python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0 | |
- name: Clone ESP-IDF | |
run: | | |
git clone --branch v5.1 --depth 1 https://github.com/espressif/esp-idf.git $HOME/esp-idf | |
- name: Install ESP-IDF | |
run: | | |
cd $HOME/esp-idf | |
./install.sh esp32 | |
- name: Set up ESP-IDF environment | |
run: echo "source $HOME/esp-idf/export.sh" >> $GITHUB_ENV | |
- name: Build ESP-IDF project | |
run: | | |
source $HOME/esp-idf/export.sh | |
idf.py build | |
env: | |
IDF_PATH: $HOME/esp-idf |