-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (31 loc) · 1015 Bytes
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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