-
Notifications
You must be signed in to change notification settings - Fork 190
81 lines (73 loc) · 2.05 KB
/
main.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
79
80
81
name: ESP-IDF
on: [push, pull_request]
jobs:
format-check:
runs-on: ubuntu-latest
container:
image: "espressif/idf:release-v5.3"
steps:
- uses: actions/checkout@v4
- run: |
. $IDF_PATH/export.sh
idf_tools.py install esp-clang
. $IDF_PATH/export.sh
which clang-format
make format-check
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version:
- release-v4.4
- release-v5.1
- release-v5.2
- release-v5.3
example:
- calibration_helper
- demo
- dragon
- grayscale_test
- www-image
include:
- version: release-v5.1
example: screen_diag
continue-on-error: ${{ matrix.version == 'latest' }}
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- uses: 'espressif/esp-idf-ci-action@main'
with:
esp_idf_version: ${{ matrix.version }}
path: 'examples/${{ matrix.example }}'
build-arduino:
runs-on: ubuntu-latest
container:
image: "espressif/idf:${{ matrix.version }}"
strategy:
fail-fast: false
matrix:
version:
- release-v4.4
example:
- weather
include:
- version: release-v4.4
arduino-esp32: 2.0.11
steps:
- name: Install latest git
run: |
apt update -qq && apt install -y -qq git
- name: Checkout repo
uses: actions/checkout@v4
- name: Install Arduino ESP
run: |
cd examples/${{ matrix.example }}
mkdir components && cd components
git clone --depth 1 --recursive --branch ${{ matrix.arduino-esp32 }} https://github.com/espressif/arduino-esp32.git arduino
- name: esp-idf build
run: |
. $IDF_PATH/export.sh
cd examples/${{ matrix.example }}
idf.py build