-
-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (69 loc) · 2 KB
/
idf.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: idf
on:
push:
branches:
- master
paths:
- 'examples/**'
- '**/idf.yml'
jobs:
branch:
strategy:
fail-fast: false
matrix:
examples:
- "makelib"
idf: ["v5.0"]
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install
run: |
sudo apt install -y git wget flex bison gperf python3-venv python3-setuptools cmake ninja-build ccache libffi-dev libssl-dev dfu-util
- name: Build
run: |
git clone -b release/${{ matrix.idf }} --recursive https://github.com/espressif/esp-idf.git
cd esp-idf
./install.sh esp32s3
. ./export.sh
cd ..
cd examples/${{ matrix.examples }}
idf.py fullclean
idf.py set-target esp32s3
idf.py build
idf.py uf2
cd build
esptool.py --chip esp32s3 merge_bin -o esp32s3-${{ matrix.examples }}-${{ matrix.idf }}.bin @flash_args
mkdir output
cp esp32s3-${{ matrix.examples }}-${{ matrix.idf }}.bin output/
cp uf2.bin output/
- name: Upload-all
uses: actions/upload-artifact@v3
with:
name: esp32s3-${{ matrix.examples }}-${{ matrix.idf }}
path: examples/${{ matrix.examples }}/build/output
docker:
strategy:
fail-fast: false
matrix:
examples:
- "makelib"
runs-on: ubuntu-latest
container: espressif/idf:v5.0
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
- name: Build ${{ matrix.examples }}
working-directory: examples/${{ matrix.examples }}
run: |
. ${IDF_PATH}/export.sh
idf.py build