From f7d0d5c415ee7b87f0b25346822b286118bf6e01 Mon Sep 17 00:00:00 2001 From: LoSk-p Date: Thu, 14 Nov 2024 07:17:33 +0300 Subject: [PATCH] . --- .github/workflows/build.yaml | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e1de5bb..c38e784 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,6 +1,5 @@ name: Build firmware -# This workflow will be triggered when new issue comment is created (including PR comments) on: push jobs: @@ -12,8 +11,24 @@ jobs: uses: actions/checkout@v4 with: submodules: 'recursive' - - name: esp-idf build - uses: espressif/esp-idf-ci-action@v1 + + - name: Set up Python + uses: actions/setup-python@v4 with: - esp_idf_version: v5.1 - target: esp32c6 \ No newline at end of file + 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: Set up ESP-IDF + run: | + git clone --branch v5.1 --depth 1 https://github.com/espressif/esp-idf.git $HOME/esp-idf + python3 -m pip install --user -r $HOME/esp-idf/requirements.txt + 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: ${{ github.workspace }}/esp-idf