Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
LoSk-p committed Nov 14, 2024
1 parent 8f92a4f commit f7d0d5c
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Build firmware

# This workflow will be triggered when new issue comment is created (including PR comments)
on: push

jobs:
Expand All @@ -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
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

0 comments on commit f7d0d5c

Please sign in to comment.